Message ID | 150841651333.29194.13840453200127893675@mail.alporthouse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 */