aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas@tungstengraphics.com>2006-08-07 06:28:29 -0400
committerDave Airlie <airlied@linux.ie>2006-09-21 15:32:30 -0400
commit7a3f1f216b92724ff822fe3122272b7fd6a58f8c (patch)
treef9ee051d41c0de64656a453ae29f8d94594c3320 /drivers/char/drm
parent332296016ee2e808b362de66bf6bec49c396e5bf (diff)
drm: missing mutex unlock
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r--drivers/char/drm/drm_bufs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c
index 006b06d29727..7775fb5dfb9b 100644
--- a/drivers/char/drm/drm_bufs.c
+++ b/drivers/char/drm/drm_bufs.c
@@ -441,8 +441,10 @@ int drm_rmmap_ioctl(struct inode *inode, struct file *filp,
441 return -EINVAL; 441 return -EINVAL;
442 } 442 }
443 443
444 if (!map) 444 if (!map) {
445 mutex_unlock(&dev->struct_mutex);
445 return -EINVAL; 446 return -EINVAL;
447 }
446 448
447 /* Register and framebuffer maps are permanent */ 449 /* Register and framebuffer maps are permanent */
448 if ((map->type == _DRM_REGISTERS) || (map->type == _DRM_FRAME_BUFFER)) { 450 if ((map->type == _DRM_REGISTERS) || (map->type == _DRM_FRAME_BUFFER)) {