Files
linux/drivers/clocksource/timer-sun5i.c
Yongbae Park 5820c59b7d clockevents: sun5i: Fix setup_irq init sequence
[ Upstream commit 1096be084a ]

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.

Cc: stable@vger.kernel.org
Signed-off-by: Yongbae Park <yongbae2@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-16 20:11:27 -04:00

5.1 KiB