drm: Only do the hw.lock cleanup in master_relase for !MODESET
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 17 Jun 2016 07:33:19 +0000 (09:33 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 20 Jun 2016 20:01:29 +0000 (22:01 +0200)
commit0de4cc99c66d2a46e92cd201f7939121d9a1bb23
tree10eea32e5bc284daf18ba8d8eb7b83dc7aa99413
parente4245ea898797f606cf2260c9c1970414b96af78
drm: Only do the hw.lock cleanup in master_relase for !MODESET

Another place gone where modern drivers could have hit
dev->struct_mutex.

To avoid too deeply nesting control flow rework it a bit.

v2: Review from Chris:
- remove spurious newline.
- fix file_priv->master like for the !file_priv->is_master case.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466148814-8194-2-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_auth.c