diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 15:50:37 +0000 |
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2026-10-14 20:05:35 -0700 |
| commit | 636c4c026f47f0a7a009b1e39e310afca640a047 (patch) | |
| tree | 92cdb106c8680a69d1f3c820a687276efe888ae4 /include/linux/debugobjects.h | |
| parent | c8f1aa63942f5e06cbecf3390fd57c92a4f44dd5 (diff) | |
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: 078117963b2c ("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>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
