Re: [PATCH] clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()

From: Abel Vesa

Date: Fri Oct 09 2026 - 04:13:30 EST



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@xxxxxxxxxxxxxxxx>