Add missing semaphore release.
authorThomas Hellstrom <thomas@tungstengraphics.com>
Wed, 5 Jul 2006 14:39:22 +0000 (14:39 +0000)
committerThomas Hellstrom <thomas@tungstengraphics.com>
Wed, 5 Jul 2006 14:39:22 +0000 (14:39 +0000)
linux-core/drm_bufs.c

index 9be1859..eb478ba 100644 (file)
@@ -484,8 +484,10 @@ int drm_rmmap_ioctl(struct inode *inode, struct file *filp,
                return -EINVAL;
        }
 
-       if (!map)
+       if (!map) {
+               up(&dev->struct_sem);
                return -EINVAL;
+       }
 
        /* Register and framebuffer maps are permanent */
        if ((map->type == _DRM_REGISTERS) || (map->type == _DRM_FRAME_BUFFER)) {