提交 7a3f1f21 编写于 作者: T Thomas Hellstrom 提交者: Dave Airlie

drm: missing mutex unlock

Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册