* [PATCH] ARM: tegra: Fix refcount leak in tegra114_gic_cpu_pm_registration
@ 2022-05-23 15:20 Miaoqian Lin
0 siblings, 0 replies; only message in thread
From: Miaoqian Lin @ 2022-05-23 15:20 UTC (permalink / raw)
To: Russell King, Thierry Reding, Jonathan Hunter, Miaoqian Lin,
Joseph Lo, Stephen Warren, linux-arm-kernel, linux-tegra,
linux-kernel
of_find_matching_node() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.
Fixes: 7e8b15dbc392 ("ARM: tegra114: Reprogram GIC CPU interface to bypass IRQ on CPU PM entry")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
arch/arm/mach-tegra/irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c
index 4e1ee70b2a3f..d51bdd46219e 100644
--- a/arch/arm/mach-tegra/irq.c
+++ b/arch/arm/mach-tegra/irq.c
@@ -73,7 +73,7 @@ static void __init tegra114_gic_cpu_pm_registration(void)
return;
tegra_gic_cpu_base = of_iomap(dn, 1);
-
+ of_node_put(dn);
cpu_pm_register_notifier(&tegra_gic_notifier_block);
}
#else
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-23 15:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 15:20 [PATCH] ARM: tegra: Fix refcount leak in tegra114_gic_cpu_pm_registration Miaoqian Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®