aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
-rw-r--r--drivers/gpu/drm/drm_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index 4f0e274f4111..aad468d170a7 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -310,7 +310,7 @@ out:
310 */ 310 */
311bool drm_is_current_master(struct drm_file *fpriv) 311bool drm_is_current_master(struct drm_file *fpriv)
312{ 312{
313 return fpriv->is_master && fpriv->master == fpriv->minor->dev->master; 313 return fpriv->is_master && drm_lease_owner(fpriv->master) == fpriv->minor->dev->master;
314} 314}
315EXPORT_SYMBOL(drm_is_current_master); 315EXPORT_SYMBOL(drm_is_current_master);
316 316