Skip to content
Commit 1c7456aa authored by Qinrun Dai's avatar Qinrun Dai Committed by Greg Kroah-Hartman
Browse files

clocksource/drivers/davinci: Fix memory leak in davinci_timer_register when init fails



[ Upstream commit fb735563 ]

Smatch reports:
drivers/clocksource/timer-davinci.c:332 davinci_timer_register()
warn: 'base' from ioremap() not released on lines: 274.

Fix this and other potential memory leak problems
by adding a set of corresponding exit lables.

Fixes: 721154f9 ("clocksource/drivers/davinci: Add support for clockevents")
Signed-off-by: default avatarQinrun Dai <flno@hust.edu.cn>
Link: https://lore.kernel.org/r/20230413135037.1505799-1-flno@hust.edu.cn


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c87c6d50
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment