Skip to content

Commit

Permalink
ARM: uniphier: add missing of_node_put()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada authored and Arnd Bergmann committed Mar 18, 2016
1 parent 2a993a5 commit 9eca796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-uniphier/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9eca796

Please sign in to comment.