linux/drivers/clocksource/timer-sun5i.c
Yongbae Park 724cfb0b6b clockevents: sun5i: Fix setup_irq init sequence
commit 1096be084a upstream.

The interrupt is enabled before the handler is set. Even this bug
did not appear, it is potentially dangerous as it can lead to a
NULL pointer dereference.

Fix the error by enabling the interrupt after
clockevents_config_and_register() is called.

Signed-off-by: Yongbae Park <yongbae2@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
2015-03-30 11:10:59 +01:00

198 lines
5.1 KiB