]> 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>
Fri, 4 Oct 2024 14:29:04 +0000 (16:29 +0200)
commit27106b0a292eee1fe321932f0a429eacce030a0a
treec6947a8c71c4411ed5af379209ee9d246f1fac68
parentee7e02e780f1d03e35ba599eb77698b6a9c572a1
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