diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 19:03:49 +0000 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-10-15 11:50:47 +0200 |
| commit | af9c707eb065a7d48eb92dc15acdb4346acf5db0 (patch) | |
| tree | 201b609f782f78d1d5b569a4ba57df42b49bc817 /scripts/Makefile.thinlto | |
| parent | 8e6b8708f925b015e2af4d77757c2fbee7da6ec8 (diff) | |
| download | linux-af9c707eb065a7d48eb92dc15acdb4346acf5db0.tar.gz linux-af9c707eb065a7d48eb92dc15acdb4346acf5db0.zip | |
irqchip/mchp-eic: Fix clock reference leak in mchp_eic_probe()
of_clk_get_by_name() returns the clock with an elevated reference count
that mchp_eic_probe() keeps for the lifetime of the driver, but none of
the probe error paths drops it, so the reference is leaked whenever
probe fails after the clock has been obtained.
Put the reference in the error cleanup. The clk_prepare_enable()
failure path must jump there directly as it cannot call
clk_disable_unprepare() on a clock that was never enabled.
Fixes: 00fa3461c86d ("irqchip/mchp-eic: Add support for the Microchip EIC")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260916190349.2094401-1-vulab@iscas.ac.cn
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
