From: Masahiro Yamada Date: Fri, 26 Feb 2016 07:16:07 +0000 (+0900) Subject: ARM: uniphier: add missing of_node_put() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9eca796ee385ee61488fbe62fa83224e13abcfe0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Masahiro Yamada Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm/mach-uniphier/platsmp.c b/arch/arm/mach-uniphier/platsmp.c index e1cfc1d6e2f4..8d988f53318c 100644 --- 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");