aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2014-11-18 23:59:33 +0100
committerDaniel Lezcano <[email protected]>2014-11-19 10:43:51 +0100
commit6bab4a8a1888729f17f4923cc5867e4674f66333 (patch)
tree95cf8a083e1799d3fabbf354ed40ac4bc599d19b /tools/perf/scripts/python/bin/stackcollapse-record
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 <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Cc: [email protected] Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions