Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107268
b: refs/heads/master
c: 8266602
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Aug 1, 2008
1 parent 4aeebe2 commit 3763241
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: 77e69dac3cefacee939cb107ae9cd520a62338e0
refs/heads/master: 8266602033d6adc6d10cb8811c1fd694767909b0
4 changes: 3 additions & 1 deletion trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,10 @@ static int do_open(struct block_device *bdev, struct file *file, int for_part)
* hooks: /n/, see "layering violations".
*/
ret = devcgroup_inode_permission(bdev->bd_inode, perm);
if (ret != 0)
if (ret != 0) {
bdput(bdev);
return ret;
}

ret = -ENXIO;
file->f_mapping = bdev->bd_inode->i_mapping;
Expand Down

0 comments on commit 3763241

Please sign in to comment.