git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git]
/
drivers
/
soc
/
amlogic
/
meson-secure-pwrc.c
diff --git
a/drivers/soc/amlogic/meson-secure-pwrc.c
b/drivers/soc/amlogic/meson-secure-pwrc.c
index a10a417a87db894d8342325ba16986c4e90e7527..e9351876352672f163809b139ccc608589112d66 100644
(file)
--- a/
drivers/soc/amlogic/meson-secure-pwrc.c
+++ b/
drivers/soc/amlogic/meson-secure-pwrc.c
@@
-152,8
+152,10
@@
static int meson_secure_pwrc_probe(struct platform_device *pdev)
}
pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL);
- if (!pwrc)
+ if (!pwrc) {
+ of_node_put(sm_np);
return -ENOMEM;
+ }
pwrc->fw = meson_sm_get(sm_np);
of_node_put(sm_np);