]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clocksource/drivers/qcom: Add missing iounmap() on errors in msm_dt_timer_init()
authorAnkit Agrawal <agrawal.ag.ankit@gmail.com>
Sat, 13 Jul 2024 09:57:13 +0000 (15:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:49 +0000 (15:10 +0200)
commitd681dae5ecdf215d34ef60551eb942622ef35247
tree334362e8e268aab337005e0e12caacd4e5517a6f
parent4a60b539f70f441a2223857065a3ac735d30dbbe
clocksource/drivers/qcom: Add missing iounmap() on errors in msm_dt_timer_init()

[ Upstream commit ca140a0dc0a18acd4653b56db211fec9b2339986 ]

Add the missing iounmap() when clock frequency fails to get read by the
of_property_read_u32() call, or if the call to msm_timer_init() fails.

Fixes: 6e3321631ac2 ("ARM: msm: Add DT support to msm_timer")
Signed-off-by: Ankit Agrawal <agrawal.ag.ankit@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240713095713.GA430091@bnew-VirtualBox
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/timer-qcom.c