Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37492
b: refs/heads/master
c: 7a3f1f2
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Sep 21, 2006
1 parent 9486063 commit 22fd12b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 332296016ee2e808b362de66bf6bec49c396e5bf
refs/heads/master: 7a3f1f216b92724ff822fe3122272b7fd6a58f8c
4 changes: 3 additions & 1 deletion trunk/drivers/char/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 22fd12b

Please sign in to comment.