Re: [PATCH] spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe()
From: Stephen Boyd
Date: Wed Oct 14 2026 - 23:19:34 EST
Quoting Wentao Liang (2026-09-17 08:50:37)
> of_clk_get_by_name() returns a reference that must be released with
> clk_put(). If the lookup of a later clock fails, the function returns
> without releasing the clocks that were already obtained. Put those
> clocks before returning.
>
> Fixes: 078117963b2c ("spmi: mtk-pmif: Add multi-bus support for SPMI 2.0")
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
> ---
Applied to spmi-next