OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a993a5
)
ARM: uniphier: add missing of_node_put()
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Fri, 26 Feb 2016 07:16:07 +0000
(16:16 +0900)
committer
Arnd Bergmann
<arnd@arndb.de>
Fri, 18 Mar 2016 16:36:26 +0000
(17:36 +0100)
This node pointer is allocated by of_find_compatible_node() in this
function. It should be put before exitting this function.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-uniphier/platsmp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-uniphier/platsmp.c
b/arch/arm/mach-uniphier/platsmp.c
index
e1cfc1d
..
8d988f5
100644
(file)
--- a/
arch/arm/mach-uniphier/platsmp.c
+++ b/
arch/arm/mach-uniphier/platsmp.c
@@
-100,6
+100,7
@@
static int __init uniphier_smp_prepare_trampoline(unsigned int max_cpus)
np = of_find_compatible_node(NULL, NULL,
"socionext,uniphier-system-bus-controller");
+ of_node_put(np);
ret = of_address_to_resource(np, 1, &res);
if (ret) {
pr_err("failed to get resource of system-bus-controller\n");