aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_fops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index e13cb62bbae..09a3571c990 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -274,6 +274,7 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
274 /* create a new master */ 274 /* create a new master */
275 priv->minor->master = drm_master_create(priv->minor); 275 priv->minor->master = drm_master_create(priv->minor);
276 if (!priv->minor->master) { 276 if (!priv->minor->master) {
277 mutex_unlock(&dev->struct_mutex);
277 ret = -ENOMEM; 278 ret = -ENOMEM;
278 goto out_free; 279 goto out_free;
279 } 280 }