Skip to content

Commit f2642d9

Browse files
krzkLinus Walleij
authored andcommitted
ARM: versatile: fix OF node leak in CPUs prepare
Machine code is leaking OF node reference from of_find_matching_node() in realview_smp_prepare_cpus(). Fixes: 5420b4b ("ARM: realview: add an DT SMP boot method") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://lore.kernel.org/20240826054934.10724-1-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 8400291 commit f2642d9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm/mach-versatile/platsmp-realview.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ static void __init realview_smp_prepare_cpus(unsigned int max_cpus)
7070
return;
7171
}
7272
map = syscon_node_to_regmap(np);
73+
of_node_put(np);
7374
if (IS_ERR(map)) {
7475
pr_err("PLATSMP: No syscon regmap\n");
7576
return;

0 commit comments

Comments
 (0)