mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
In calibrate_ccount(), of_clk_get() acquires a reference to the CPU clock, but clk_put() is never called to release it. The clock reference is used only to read the frequency via clk_get_rate(), then the function returns immediately, leaking the reference. Fix this by calling clk_put(clk) before returning. Signed-off-by: 赵宇 <[email protected]> Message-ID: <[email protected]> Signed-off-by: Max Filippov <[email protected]>