diff options
author | Qinrun Dai <[email protected]> | 2023-04-13 13:50:37 +0000 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2023-04-24 16:56:13 +0200 |
commit | fb73556386e074e9bee9fa2d253aeaefe4e063e0 (patch) | |
tree | 9740a085428f19574ec5b8ff36b3b719fa9016dd /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | b6f228e800ccf285906bb1c4c366ce3848a5443e (diff) |
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: 721154f972aa ("clocksource/drivers/davinci: Add support for clockevents")
Signed-off-by: Qinrun Dai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions