drm: hold event_lock while accessing vblank_event_list
authorImre Deak <imre.deak@intel.com>
Fri, 2 Nov 2012 11:30:50 +0000 (13:30 +0200)
committerInki Dae <daeinki@gmail.com>
Thu, 29 Nov 2012 11:30:34 +0000 (03:30 -0800)
commite7783ba3bf1c631278be6620875fbfa6b0eba905
tree3dab1a45e1d504130bce9fdc60885aefe0700559
parent9fb7dff5ec238c8f71ef9b06256957a0db585c04
drm: hold event_lock while accessing vblank_event_list

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 <imre.deak@intel.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/drm_irq.c