]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clocksource/drivers/clps711x: Fix resource leaks in error paths
authorZhen Ni <zhen.ni@easystack.cn>
Thu, 14 Aug 2025 12:33:24 +0000 (20:33 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:42:27 +0000 (12:42 +0200)
commitcd32e596f02fc981674573402c1138f616df1728
tree0ba1c5e29ffbd523fc6cb5400a26aba10dfb6578
parent1c4b87c921fb158d853adcb8fd48c2dc07fc6f91
clocksource/drivers/clps711x: Fix resource leaks in error paths

The current implementation of clps711x_timer_init() has multiple error
paths that directly return without releasing the base I/O memory mapped
via of_iomap(). Fix of_iomap leaks in error paths.

Fixes: 04410efbb6bc ("clocksource/drivers/clps711x: Convert init function to return error")
Fixes: 2a6a8e2d9004 ("clocksource/drivers/clps711x: Remove board support")
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250814123324.1516495-1-zhen.ni@easystack.cn
drivers/clocksource/clps711x-timer.c