diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-15 04:52:42 +0000 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2026-10-07 15:46:01 +0200 |
| commit | 9cc2e18b32f12d26ae6729c62a03640423956b17 (patch) | |
| tree | 9f3db7524d2a1ce59b38b906ba78a35d9b71ff26 /include/linux/platform_data | |
| parent | 277e5657237a92e279ee28da2f5c07902cc6aa0b (diff) | |
| download | linux-next-9cc2e18b32f12d26ae6729c62a03640423956b17.tar.gz linux-next-9cc2e18b32f12d26ae6729c62a03640423956b17.zip | |
clocksource/drivers/digicolor: Fix clk reference leak on request_irq failure
digicolor_timer_init() obtains the timer clock with of_clk_get() and
enables it, but the request_irq() failure path returns without releasing
the clock reference, leaking both the enable/prepare state and the
reference itself.
Disable and put the clock before returning on the request_irq() failure
path. The success path keeps the clock enabled for the lifetime of the
timer and is left untouched.
Fixes: 9b8bb7736b78 ("clocksource: Driver for Conexant Digicolor SoC timer")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Link: https://patch.msgid.link/20260915045242.1726702-1-vulab@iscas.ac.cn
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
