diff options
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index fbd640dbf7e..c282f85c1c8 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -490,6 +490,11 @@ int drm_release(struct inode *inode, struct file *filp) | |||
490 | (long)old_encode_dev(file_priv->minor->device), | 490 | (long)old_encode_dev(file_priv->minor->device), |
491 | dev->open_count); | 491 | dev->open_count); |
492 | 492 | ||
493 | /* Release any auth tokens that might point to this file_priv, | ||
494 | (do that under the drm_global_mutex) */ | ||
495 | if (file_priv->magic) | ||
496 | (void) drm_remove_magic(file_priv->master, file_priv->magic); | ||
497 | |||
493 | /* if the master has gone away we can't do anything with the lock */ | 498 | /* if the master has gone away we can't do anything with the lock */ |
494 | if (file_priv->minor->master) | 499 | if (file_priv->minor->master) |
495 | drm_master_release(dev, filp); | 500 | drm_master_release(dev, filp); |