summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-11-18 23:59:33 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2014-11-19 10:43:51 +0100
commit6bab4a8a1888729f17f4923cc5867e4674f66333 (patch)
tree95cf8a083e1799d3fabbf354ed40ac4bc599d19b /security/security.c
parent59aa896db80479dec29f471a7ca2b9eeeeb7d38e (diff)
clockevent: sun4i: Fix race condition in the probe code
The interrupts were activated and the handler registered before the clockevent was registered in the probe function. The interrupt handler, however, was making the assumption that the clockevent device was registered. That could cause a null pointer dereference if the timer interrupt was firing during this narrow window. Fix that by moving the clockevent registration before the interrupt is enabled. Reported-by: Roman Byshko <rbyshko@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: stable@vger.kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions