mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
microblaze: CCF: fix refcount leak
Every value returned from of_clk_get() is supposed to be cleaned up
via clk_put() once not needed anymore.
Fixes: c1120542b9 ("microblaze: Add support for CCF")
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Link: https://patch.msgid.link/20260526184105.18962-4-grandmaster@al2klimov.de
Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
ca35dd21a5
commit
aeedf85bea
|
|
@ -133,6 +133,7 @@ void __init setup_cpuinfo_clk(void)
|
|||
cpuinfo.cpu_clock_freq = fcpu(cpu, "timebase-frequency");
|
||||
} else {
|
||||
cpuinfo.cpu_clock_freq = clk_get_rate(clk);
|
||||
clk_put(clk);
|
||||
}
|
||||
|
||||
if (!cpuinfo.cpu_clock_freq) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user