linux-stable/drivers/clocksource
Feng Mingxi e0a9cc90ea clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
[ Upstream commit 8b5bf64c89 ]

Smatch reports:
drivers/clocksource/timer-cadence-ttc.c:529 ttc_timer_probe()
warn: 'timer_baseaddr' from of_iomap() not released on lines: 498,508,516.

timer_baseaddr may have the problem of not being released after use,
I replaced it with the devm_of_iomap() function and added the clk_put()
function to cleanup the "clk_ce" and "clk_cs".

Fixes: e932900a32 ("arm: zynq: Use standard timer binding")
Fixes: 70504f311d ("clocksource/drivers/cadence_ttc: Convert init function to return error")
Signed-off-by: Feng Mingxi <m202271825@hust.edu.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Acked-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230425065611.702917-1-m202271825@hust.edu.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 11:45:02 +02:00
..
acpi_pm.c clocksource: acpi_pm: fix return value of __setup handler 2022-04-15 14:14:44 +02:00
arc_timer.c
arm_arch_timer.c clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround 2021-07-20 16:16:04 +02:00
arm_global_timer.c
armv7m_systick.c
asm9260_timer.c
bcm2835_timer.c
bcm_kona_timer.c
clksrc-dbx500-prcmu.c
clksrc_st_lpc.c
clps711x-timer.c
cs5535-clockevt.c
dummy_timer.c
dw_apb_timer.c
dw_apb_timer_of.c clocksource: dw_apb_timer_of: Fix missing clockevent timers 2020-06-22 09:05:11 +02:00
em_sti.c
exynos_mct.c
h8300_timer8.c clocksource/drivers/h8300_timer8: Fix wrong return value in h8300_8timer_init() 2020-10-01 13:14:51 +02:00
h8300_timer16.c
h8300_tpu.c
i8253.c
jcore-pit.c
Kconfig clocksource/drivers/timer-ti-dm: Select TIMER_OF 2021-11-26 11:36:10 +01:00
Makefile clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
meson6_timer.c
mips-gic-timer.c
mmio.c
mps2-timer.c
mxs_timer.c clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined 2021-03-04 09:39:44 +01:00
nomadik-mtu.c
numachip.c
pxa_timer.c
renesas-ostm.c
riscv_timer.c clocksource/drivers/riscv: Events are stopped during CPU suspend 2022-06-14 16:59:32 +02:00
rockchip_timer.c
samsung_pwm_timer.c
scx200_hrt.c
sh_cmt.c clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled 2023-01-18 11:30:06 +01:00
sh_mtu2.c
sh_tmu.c
sun4i_timer.c
tango_xtal.c
tcb_clksrc.c
tegra20_timer.c
timer-armada-370-xp.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-atcpit100.c
timer-atlas7.c
timer-atmel-pit.c
timer-atmel-st.c
timer-cadence-ttc.c clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe 2023-08-11 11:45:02 +02:00
timer-digicolor.c
timer-efm32.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-fsl-ftm.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-fttmr010.c
timer-imx-gpt.c
timer-imx-tpm.c
timer-integrator-ap.c
timer-keystone.c
timer-lpc32xx.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-mediatek.c
timer-npcm7xx.c
timer-nps.c
timer-of.c clocksource/drivers/timer-of: Check return value of of_iomap in timer_of_base_init() 2022-04-15 14:14:43 +02:00
timer-of.h
timer-orion.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-owl.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-oxnas-rps.c clocksource/drivers/oxnas-rps: Fix irq_of_parse_and_map() return value 2022-06-14 16:59:33 +02:00
timer-pistachio.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-prima2.c
timer-probe.c
timer-qcom.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-sp.h
timer-sp804.c clocksource/drivers/sp804: Avoid error on multiple instances 2022-06-14 16:59:37 +02:00
timer-sprd.c
timer-stm32.c
timer-sun5i.c
timer-ti-32k.c
timer-ti-dm.c
timer-u300.c
timer-versatile.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-vf-pit.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-vt8500.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00
timer-zevio.c clocksource/drivers: Unify the names to timer-* format 2023-08-11 11:45:02 +02:00