Skip to content

Commit f99d621

Browse files
committed
Merge tag 'amlogic-arm-for-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into arm/fixes
Amlogic ARM mach-meson changes for v5.20: - Fix refcount leak in meson_smp_prepare_cpus * tag 'amlogic-arm-for-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux: ARM: meson: Fix refcount leak in meson_smp_prepare_cpus Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents d95ce66 + 34d2cd3 commit f99d621

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/mach-meson/platsmp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static void __init meson_smp_prepare_cpus(const char *scu_compatible,
7171
}
7272

7373
sram_base = of_iomap(node, 0);
74+
of_node_put(node);
7475
if (!sram_base) {
7576
pr_err("Couldn't map SRAM registers\n");
7677
return;
@@ -91,6 +92,7 @@ static void __init meson_smp_prepare_cpus(const char *scu_compatible,
9192
}
9293

9394
scu_base = of_iomap(node, 0);
95+
of_node_put(node);
9496
if (!scu_base) {
9597
pr_err("Couldn't map SCU registers\n");
9698
return;

0 commit comments

Comments
 (0)