Re: [PATCH] clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
From: Abel Vesa
Date: Fri Oct 09 2026 - 04:12:50 EST
On Tue, 15 Sep 2026 05:55:15 +0000, Wentao Liang wrote:
> imx_get_clk_hw_by_name() obtains a consumer clock with
> of_clk_get_by_name(), extracts the hardware pointer with __clk_get_hw()
> and returns it without ever calling clk_put(), leaking the consumer
> reference on both return paths.
>
> Extract the hardware pointer first and drop the clock reference with
> clk_put() before returning.
>
> [...]
Applied, thanks!
[1/1] clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
commit: 8e177ca735761a1f03e1dedffd7ab00d6d0540ae
Best regards,
--
Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>