projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1de7f4
)
nvmem: sunxi_sid: return -ENOMEM if kzalloc() fails
author
Bartosz Golaszewski
<
[email protected]
>
Fri, 21 Sep 2018 13:40:09 +0000
(06:40 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 28 Sep 2018 13:14:54 +0000
(15:14 +0200)
The driver currently returns -EINVAL if kzalloc() fails in probe().
Change it to -ENOMEM as it should be.
Signed-off-by: Bartosz Golaszewski <
[email protected]
>
Signed-off-by: Srinivas Kandagatla <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/nvmem/sunxi_sid.c
patch
|
blob
|
history
diff --git
a/drivers/nvmem/sunxi_sid.c
b/drivers/nvmem/sunxi_sid.c
index d020f89248fd76a7baca320bb6a4238a71d785c0..4d0b7e72aa2eb4dcf99c4dbbb82109584f67996b 100644
(file)
--- a/
drivers/nvmem/sunxi_sid.c
+++ b/
drivers/nvmem/sunxi_sid.c
@@
-187,7
+187,7
@@
static int sunxi_sid_probe(struct platform_device *pdev)
randomness = kzalloc(size, GFP_KERNEL);
if (!randomness) {
- ret = -E
INVAL
;
+ ret = -E
NOMEM
;
goto err_unreg_nvmem;
}