Thread (6 messages) 6 messages, 2 authors, 2024-08-30
STALE679d LANDED

[PATCH 1/4] soc: versatile: integrator: fix OF node leak in probe() error path

From: Krzysztof Kozlowski <hidden>
Date: 2024-08-25 18:05:53
Also in: lkml, stable
Subsystem: arm integrator, versatile and realview support, the rest · Maintainers: Linus Walleij, Linus Torvalds

Driver is leaking OF node reference obtained from
of_find_matching_node().

Fixes: f956a785a282 ("soc: move SoC driver for the ARM Integrator")
Cc: <redacted>
Signed-off-by: Krzysztof Kozlowski <redacted>
---
 drivers/soc/versatile/soc-integrator.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/soc/versatile/soc-integrator.c b/drivers/soc/versatile/soc-integrator.c
index bab4ad87aa75..d5099a3386b4 100644
--- a/drivers/soc/versatile/soc-integrator.c
+++ b/drivers/soc/versatile/soc-integrator.c
@@ -113,6 +113,7 @@ static int __init integrator_soc_init(void)
 		return -ENODEV;
 
 	syscon_regmap = syscon_node_to_regmap(np);
+	of_node_put(np);
 	if (IS_ERR(syscon_regmap))
 		return PTR_ERR(syscon_regmap);
 
-- 
2.43.0

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help