Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9eca796e authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Arnd Bergmann
Browse files

ARM: uniphier: add missing of_node_put()



This node pointer is allocated by of_find_compatible_node() in this
function.  It should be put before exitting this function.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 2a993a58
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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");