projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61fc413
)
reset: NULL deref on allocation failure
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 3 Apr 2013 05:02:53 +0000
(08:02 +0300)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Fri, 12 Apr 2013 08:26:24 +0000
(10:26 +0200)
"rstc" is NULL here and we should use "rcdev" instead of "rstc->rcdev".
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
patch
|
blob
|
history
diff --git
a/drivers/reset/core.c
b/drivers/reset/core.c
index
a258277
..
d1b6089
100644
(file)
--- a/
drivers/reset/core.c
+++ b/
drivers/reset/core.c
@@
-181,7
+181,7
@@
struct reset_control *reset_control_get(struct device *dev, const char *id)
rstc = kzalloc(sizeof(*rstc), GFP_KERNEL);
if (!rstc) {
- module_put(r
stc->r
cdev->owner);
+ module_put(rcdev->owner);
return ERR_PTR(-ENOMEM);
}