[PATCH] spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe()
Stephen Boyd
sboyd at kernel.org
Wed Oct 14 20:05:44 PDT 2026
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 at iscas.ac.cn>
> ---
Applied to spmi-next
More information about the linux-arm-kernel
mailing list