[PATCH] clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
Abel Vesa
abel.vesa at oss.qualcomm.com
Fri Oct 9 01:11:34 PDT 2026
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 at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list