[Intel-gfx] [PATCH v2] drm-auth
Chris Wilson
chris at chris-wilson.co.uk
Tue Oct 24 12:52:29 UTC 2017
---
drivers/gpu/drm/drm_auth.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index 4c14b2cbc733..c40e603e0559 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -285,7 +285,8 @@ void drm_master_release(struct drm_file *file_priv)
if (dev->master == file_priv->master)
drm_drop_master(dev, file_priv);
out:
- if (file_priv->is_master) {
+ if (drm_core_check_feature(dev, DRIVER_MODESET) &&
+ file_priv->is_master) {
/* Revoke any leases held by this or lessees, but only if
* this is the "real" master
*/
--
2.15.0.rc1
More information about the Intel-gfx
mailing list