Skip to content
Commit fb735563 authored by Qinrun Dai's avatar Qinrun Dai Committed by Daniel Lezcano
Browse files

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



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>
parent b6f228e8
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