Commit 7a3f1f21 authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie

drm: missing mutex unlock

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 33229601
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment