* [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak
@ 2026-05-26 18:40 Alexander A. Klimov
2026-05-26 22:41 ` Brian Masney
0 siblings, 1 reply; 2+ 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 related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak
2026-05-26 18:40 [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak Alexander A. Klimov
@ 2026-05-26 22:41 ` Brian Masney
0 siblings, 0 replies; 2+ messages in thread
From: Brian Masney @ 2026-05-26 22:41 UTC (permalink / raw)
To: Alexander A. Klimov
Cc: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth,
Michael Turquette, Stephen Boyd,
moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x,...,
open list:COMMON CLK FRAMEWORK, open list
On Tue, May 26, 2026 at 08:40:56PM +0200, Alexander A. Klimov wrote:
> 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>
Reviewed-by: Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-26 22:41 UTC | newest]
Thread overview: 2+ 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 22:41 ` Brian Masney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox