Files
Wentao Liang 636c4c026f spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe()
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: 078117963b ("spmi: mtk-pmif: Add multi-bus support for SPMI 2.0")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2026-10-14 20:05:35 -07:00
..
2025-05-21 14:53:17 +02:00
2025-05-21 14:53:17 +02:00