Commit cc1216f3 authored by Zhen Ni's avatar Zhen Ni Committed by Greg Kroah-Hartman
Browse files

clocksource/drivers/clps711x: Fix resource leaks in error paths



commit cd32e596 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: 04410efb ("clocksource/drivers/clps711x: Convert init function to return error")
Fixes: 2a6a8e2d ("clocksource/drivers/clps711x: Remove board support")
Signed-off-by: default avatarZhen Ni <zhen.ni@easystack.cn>
Signed-off-by: default avatarDaniel 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f13f727
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment