From: Thomas Hellstrom Date: Mon, 7 Aug 2006 10:28:29 +0000 (+1000) Subject: drm: missing mutex unlock X-Git-Tag: v2.6.19-rc1~641^2~32 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a3f1f216b92724ff822fe3122272b7fd6a58f8c;p=linux-2.6 drm: missing mutex unlock Signed-off-by: Dave Airlie --- diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index 006b06d297..7775fb5dfb 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, 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)) {