mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak
@ 2026-05-26 18:40 Alexander A. Klimov
  2026-05-26 18:40 ` [PATCH] clocksource/drivers/clps711x: " Alexander A. Klimov
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Alexander A. Klimov @ 2026-05-26 18:40 UTC (permalink / raw)
  To: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth,
	Michael Turquette, Stephen Boyd, Brian Masney,
	moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x,...,
	open list:COMMON CLK FRAMEWORK, open list
  Cc: Alexander A. Klimov

Every value returned from of_clk_get() is supposed to be cleaned up
via clk_put() once not needed anymore.

Fixes: f756e362d938 ("clk: mvebu: add CPU clock driver for Armada 7K/8K")
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
---
 drivers/clk/mvebu/ap-cpu-clk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/mvebu/ap-cpu-clk.c b/drivers/clk/mvebu/ap-cpu-clk.c
index 1e44ace7d951..7721d5fe50bc 100644
--- a/drivers/clk/mvebu/ap-cpu-clk.c
+++ b/drivers/clk/mvebu/ap-cpu-clk.c
@@ -312,6 +312,7 @@ static int ap_cpu_clock_probe(struct platform_device *pdev)
 		}
 		parent_name =  __clk_get_name(parent);
 		clk_name[12] += cluster_index;
+		clk_put(parent);
 		ap_cpu_clk[cluster_index].clk_name =
 			ap_cp_unique_name(dev, np->parent, clk_name);
 		ap_cpu_clk[cluster_index].cluster = cluster_index;
-- 
2.54.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-06-09 18:49 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-26 18:40 [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak Alexander A. Klimov
2026-05-26 18:40 ` [PATCH] clocksource/drivers/clps711x: " Alexander A. Klimov
2026-05-26 18:40 ` [PATCH] clocksource/timer-econet-en751221: " Alexander A. Klimov
2026-05-28 16:05   ` Caleb James DeLisle
2026-05-26 18:40 ` [PATCH] microblaze: CCF: " Alexander A. Klimov
2026-05-26 18:41 ` [PATCH] drm/vc4: fix krealloc() memory leak Alexander A. Klimov
2026-05-28 18:17   ` Maíra Canal
2026-05-28 18:54     ` Alexander A. Klimov
2026-05-28 19:01       ` Maíra Canal
2026-05-31 19:55     ` [PATCH v2] " Alexander A. Klimov
2026-06-01  3:34       ` Joe Perches
2026-06-06 12:38         ` [PATCH v3] " Alexander A. Klimov
2026-06-06 13:32           ` Maíra Canal
2026-06-09 18:49           ` Maíra Canal
2026-05-26 18:41 ` [PATCH] ibmvnic: " Alexander A. Klimov
2026-05-26 20:50   ` Nicolai Buchwitz
2026-05-27 17:22     ` Alexander A. Klimov
2026-05-26 22:41 ` [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak Brian Masney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome