drm/i915: delay master/sarea deref for legacy ioctls
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 22:50:06 +0000 (23:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 22:50:06 +0000 (23:50 +0100)
commit4d10cc0f861ed776f6cf953fd1df933c8b5c9812
treec7f1ac384610c613179676a874c82a3a97d0a448
parentfb19e2ac7cc0f4addbdb1577501a4cdfb6183e7d
drm/i915: delay master/sarea deref for legacy ioctls

... past the check for DRIVER_MODESET. Avoids races with userspace
opening a master and our sarea setup.

Cc: Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c