summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas@tungstengraphics.com>2006-07-05 14:39:22 +0000
committerThomas Hellstrom <thomas@tungstengraphics.com>2006-07-05 14:39:22 +0000
commit264f60ded4921e00f83198fa48e82037f26e818c (patch)
treed1799386f814ad2fb51bd9a80601771261f10e1b
parent56b073385213d187535fbbd24adaf9ebeb7c752f (diff)
Add missing semaphore release.
-rw-r--r--linux-core/drm_bufs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index 9be18595..eb478ba2 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -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)) {