]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:05 +0000 (16:23 +0200)
commitd5a6942762e7d545ecf18951aa0ed378431f2d84
tree7711aa4006bc65da697c31c69cc786426b3fa713
parent7c1d0181211cf99f8561d140010b8c3b169b2c80
clocksource/drivers/clps711x: Fix resource leaks in error paths

commit cd32e596f02fc981674573402c1138f616df1728 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clocksource/clps711x-timer.c