clocksource/drivers/mtk_timer: Fix memleak in mtk_timer_init()
authorAlexey Klimov <alexey.klimov@linaro.org>
Sun, 25 Oct 2015 23:21:24 +0000 (23:21 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:41:04 +0000 (09:41 +0100)
commit11faa20eb43997baae0c72916d8a959efcb6f8c4
tree5d9688fc459184b5fae1adcc9648789732d40055
parent6cd7ccaaa84f6d9ee9ed33c66d7492121e2b98fd
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: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/mtk_timer.c