Skip to content

Commit 773df3e

Browse files
committed
Integrator fixes for the v6.12 kernel cycle, some of_node_put():s were missing in the SoC drivers. * tag 'integrator-v6.12' of https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator: bus: integrator-lm: fix OF node leak in probe() ARM: versatile: fix OF node leak in CPUs prepare Link: https://lore.kernel.org/r/CACRpkdahXECZXWA5uv=SZtkzU0E++fQj7QWK8kYuH0-asLUPqg@mail.gmail.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 47ac09b + 15a62b8 commit 773df3e

2 files changed

Lines changed: 2 additions & 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;

drivers/bus/arm-integrator-lm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ static int integrator_ap_lm_probe(struct platform_device *pdev)
8585
return -ENODEV;
8686
}
8787
map = syscon_node_to_regmap(syscon);
88+
of_node_put(syscon);
8889
if (IS_ERR(map)) {
8990
dev_err(dev,
9091
"could not find Integrator/AP system controller\n");

0 commit comments

Comments
 (0)