Skip to content
Commit 11faa20e authored by Alexey Klimov's avatar Alexey Klimov Committed by Daniel Lezcano
Browse files

clocksource/drivers/mtk_timer: Fix memleak in mtk_timer_init()



Add error path to clear evt struct allocated by kzalloc() in the beginning of
function mtk_timer_init().

Acked-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarAlexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 6cd7ccaa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment