Re: [PATCH] clocksource: mtk: Fix race conditions in probe code

2015-02-23 Thread Daniel Lezcano
On 02/19/2015 11:41 AM, Matthias Brugger wrote: We have two race conditions in the probe code which could lead to a null pointer dereference in the interrupt handler. The interrupt handler accesses the clockevent device, which may not yet be registered. First race condition happens when the int

[PATCH] clocksource: mtk: Fix race conditions in probe code

2015-02-19 Thread Matthias Brugger
We have two race conditions in the probe code which could lead to a null pointer dereference in the interrupt handler. The interrupt handler accesses the clockevent device, which may not yet be registered. First race condition happens when the interrupt handler gets registered before the interrup