Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208517
b: refs/heads/master
c: b7300b7
h: refs/heads/master
i:
  208515: 97e05ce
v: v3
  • Loading branch information
Chris Wright authored and Linus Torvalds committed Aug 11, 2010
1 parent 8336bd3 commit 6e602f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: e400c28524af2d344b1663b27bf28984fa959a0e
refs/heads/master: b7300b78d1a87625975a799a109a2f98d77757c8
10 changes: 6 additions & 4 deletions trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,10 +1340,12 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part)
/*
* hooks: /n/, see "layering violations".
*/
ret = devcgroup_inode_permission(bdev->bd_inode, perm);
if (ret != 0) {
bdput(bdev);
return ret;
if (!for_part) {
ret = devcgroup_inode_permission(bdev->bd_inode, perm);
if (ret != 0) {
bdput(bdev);
return ret;
}
}

restart:
Expand Down

0 comments on commit 6e602f7

Please sign in to comment.