linux/drivers/spmi
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
..
hisi-spmi-controller.c spmi: hisi-spmi-controller: Drop duplicated OF node assignment in spmi_controller_probe() 2025-01-17 12:58:49 +01:00
Kconfig spmi: add a spmi driver for Apple SoC 2025-05-21 14:53:17 +02:00
Makefile spmi: add a spmi driver for Apple SoC 2025-05-21 14:53:17 +02:00
spmi-apple-controller.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
spmi-devres.c spmi: Implement spmi_subdevice_alloc_and_add() and devm variant 2026-10-14 20:03:38 -07:00
spmi-mtk-pmif.c spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe() 2026-10-14 20:05:35 -07:00
spmi-pmic-arb.c spmi: pmic-arb: return 0 in spmi_pmic_arb_register_buses() on success 2026-10-14 20:00:49 -07:00
spmi.c spmi: Add helper to get a parent SPMI device 2026-10-14 20:03:57 -07:00