]> err.no Git - linux-2.6/commitdiff
drm: missing mutex unlock
authorThomas Hellstrom <thomas@tungstengraphics.com>
Mon, 7 Aug 2006 10:28:29 +0000 (20:28 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 21 Sep 2006 19:32:30 +0000 (05:32 +1000)
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_bufs.c

index 006b06d29727069b30ff304f5ad58084804a689d..7775fb5dfb9b92b2cb041c7e52b83398730dc9fe 100644 (file)
@@ -441,8 +441,10 @@ int drm_rmmap_ioctl(struct inode *inode, struct file *filp,
                return -EINVAL;
        }
 
-       if (!map)
+       if (!map) {
+               mutex_unlock(&dev->struct_mutex);
                return -EINVAL;
+       }
 
        /* Register and framebuffer maps are permanent */
        if ((map->type == _DRM_REGISTERS) || (map->type == _DRM_FRAME_BUFFER)) {