[PATCH] clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()
Abel Vesa
abel.vesa at oss.qualcomm.com
Fri Oct 9 01:11:35 PDT 2026
On Tue, 15 Sep 2026 05:56:31 +0000, Wentao Liang wrote:
> imx_obtain_fixed_clock_hw() obtains the clock through
> imx_obtain_fixed_clock_from_dt(), which creates a consumer reference
> via of_clk_get_from_provider(). The reference is discarded right after
> __clk_get_hw() returns the hardware pointer, leaking it.
>
> Keep the imx_clk_fixed() fallback unchanged and drop the DT-obtained
> consumer reference with clk_put() once the hardware pointer has been
> extracted.
>
> [...]
Applied, thanks!
[1/1] clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()
commit: 52d4d1b26a5bc64de95099d0a3dd8b90dba1f3a3
Best regards,
--
Abel Vesa <abel.vesa at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list