Feng Mingxi
54cc10a0f4
clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
...
[ Upstream commit 8b5bf64c89c7100c921bd807ba39b2eb003061ab ]
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-07-27 08:37:05 +02:00
..
acpi_pm.c
clocksource: acpi_pm: fix return value of __setup handler
2022-04-15 14:18:05 +02:00
arc_timer.c
arm_arch_timer.c
clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround
2021-07-19 08:53:15 +02:00
arm_global_timer.c
armv7m_systick.c
asm9260_timer.c
clocksource/drivers/asm9260: Add a check for of_clk_get
2020-01-04 19:17:07 +01:00
bcm2835_timer.c
clocksource/drivers/bcm2835_timer: Fix memory leak of timer
2020-02-24 08:36:28 +01:00
bcm_kona_timer.c
clksrc-dbx500-prcmu.c
clksrc_st_lpc.c
clps711x-timer.c
dummy_timer.c
dw_apb_timer.c
clocksource: dw_apb_timer: Make CPU-affiliation being optional
2020-06-22 09:30:55 +02:00
dw_apb_timer_of.c
clocksource: dw_apb_timer_of: Fix missing clockevent timers
2020-06-22 09:30:55 +02:00
em_sti.c
clocksource: Remove dev_err() usage after platform_get_irq()
2019-08-27 00:31:39 +02:00
exynos_mct.c
h8300_timer8.c
clocksource/drivers/h8300_timer8: Fix wrong return value in h8300_8timer_init()
2020-10-01 13:18:16 +02:00
h8300_timer16.c
h8300_tpu.c
hyperv_timer.c
clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()
2022-06-22 14:11:21 +02:00
i8253.c
ingenic-timer.c
clocksource: Add a new timer-ingenic driver
2019-08-08 15:30:08 -07:00
jcore-pit.c
Kconfig
clocksource/drivers/timer-ti-dm: Select TIMER_OF
2021-11-17 09:48:39 +01:00
Makefile
clocksource: Add a new timer-ingenic driver
2019-08-08 15:30:08 -07:00
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 10:26:29 +01:00
nomadik-mtu.c
numachip.c
renesas-ostm.c
clocksource/drivers/renesas-ostm: Use DIV_ROUND_CLOSEST() helper
2019-08-27 00:31:39 +02:00
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:40:56 +01:00
sh_mtu2.c
clocksource/drivers/sh_mtu2: Do not loop using platform_get_irq_by_name()
2019-10-18 07:55:16 +02:00
sh_tmu.c
clocksource: Remove dev_err() usage after platform_get_irq()
2019-08-27 00:31:39 +02:00
timer-armada-370-xp.c
timer-atcpit100.c
timer-atlas7.c
timer-atmel-pit.c
timer-atmel-st.c
timer-atmel-tcb.c
clocksource/drivers/tcb_clksrc: Register delay timer
2019-08-27 00:31:39 +02:00
timer-cadence-ttc.c
clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
2023-07-27 08:37:05 +02:00
timer-cs5535.c
timer-davinci.c
clocksource/drivers/davinci: Fix memory leak in davinci_timer_register when init fails
2023-05-17 11:35:53 +02:00
timer-digicolor.c
timer-efm32.c
timer-fsl-ftm.c
timer-fttmr010.c
timer-gx6605s.c
clocksource/drivers/timer-gx6605s: Fixup counter reload
2020-10-07 08:01:25 +02:00
timer-imx-gpt.c
timer-imx-sysctr.c
clocksource/drivers/imx-sysctr: Add internal clock divider handle
2019-08-27 00:31:39 +02:00
timer-imx-tpm.c
timer-integrator-ap.c
timer-ixp4xx.c
clocksource/drivers/ixp4xx: remove EXPORT_SYMBOL_GPL from ixp4xx_timer_setup()
2022-07-07 17:36:53 +02:00
timer-keystone.c
timer-lpc32xx.c
timer-mediatek.c
clocksource/drivers/mediatek: Fix error handling
2019-10-16 17:04:50 +02:00
timer-meson6.c
timer-milbeaut.c
timer-mp-csky.c
timer-npcm7xx.c
clocksource/drivers/npcm: Fix GENMASK and timer operation
2019-08-27 00:31:39 +02:00
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:18:05 +02:00
timer-of.h
timer-orion.c
clocksource/drivers/orion: Add missing clk_disable_unprepare() on error path
2020-12-30 11:51:17 +01:00
timer-owl.c
timer-oxnas-rps.c
clocksource/drivers/oxnas-rps: Fix irq_of_parse_and_map() return value
2022-06-14 18:11:54 +02:00
timer-pistachio.c
timer-prima2.c
timer-probe.c
clocksource/drivers: Do not warn on probe defer
2019-08-27 00:31:39 +02:00
timer-pxa.c
timer-qcom.c
timer-rda.c
timer-riscv.c
Revert "clocksource/drivers/riscv: Events are stopped during CPU suspend"
2022-12-08 11:23:06 +01:00
timer-rockchip.c
timer-sp.h
timer-sp804.c
clocksource/drivers/sp804: Avoid error on multiple instances
2022-06-14 18:12:00 +02:00
timer-sprd.c
timer-stm32.c
timer-sun4i.c
clocksource: sun4i: Add missing compatibles
2019-08-27 00:31:39 +02:00
timer-sun5i.c
timer-tango-xtal.c
timer-tegra.c
timer-ti-32k.c
timer-ti-dm.c
timer-u300.c
timer-versatile.c
timer-vf-pit.c
timer-vt8500.c
timer-zevio.c