drm/i915: Grab dev->struct_mutex in i915_gem_pageflip_info
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Jun 2014 20:34:37 +0000 (22:34 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Jun 2014 22:48:36 +0000 (00:48 +0200)
commit8a270ebf341105b85aaf4f5e4336bb53b3c10177
treea793a06e56f35922f1b3540c3c82d68d0408f35b
parentc9224faa59c3071ecfa2d4b24592f4eb61e57069
drm/i915: Grab dev->struct_mutex in i915_gem_pageflip_info

We could walk of a bad list otherwise when someone concurrently
unbinds stuff for fun.

I've suspected this as the root-cause behind seemingly inconsistent
state, but alas it's not.

Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c