From 264f60ded4921e00f83198fa48e82037f26e818c Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Wed, 5 Jul 2006 14:39:22 +0000 Subject: Add missing semaphore release. --- linux-core/drm_bufs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.3