[PATCH v2 4/4] drm: hold event_lock while accessing vblank_event_list

2012-11-02 Thread Imre Deak
Currently the only users of drm_vblank_off() are i915 and gma500, neither of which holds the event_lock when calling this function. Fix this by holding the event_lock while traversing the list. Signed-off-by: Imre Deak --- drivers/gpu/drm/drm_irq.c |3 +++ 1 file changed, 3 insertions(+) di

[PATCH v2 4/4] drm: hold event_lock while accessing vblank_event_list

2012-11-02 Thread Imre Deak
Currently the only users of drm_vblank_off() are i915 and gma500, neither of which holds the event_lock when calling this function. Fix this by holding the event_lock while traversing the list. Signed-off-by: Imre Deak --- drivers/gpu/drm/drm_irq.c |3 +++ 1 file changed, 3 insertions(+) di