drm: Extract drm_master_relase
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Jun 2016 18:51:01 +0000 (20:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Jun 2016 08:17:58 +0000 (10:17 +0200)
commit14d71ebdb5bd97529ff360b240f294559754824f
tree35d1fa56fd6c0ecc88ec768c1ca0f63fd4601d76
parent2cbae7e63747c917b08a505e44b31ec8b4ee5583
drm: Extract drm_master_relase

Like with drm_master_open protect it with a check for primary_client
to make it clear that this can't happen on render/control nodes.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465930269-7883-7-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_auth.c
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_internal.h