Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40480
b: refs/heads/master
c: bcb5516
h: refs/heads/master
v: v3
  • Loading branch information
Jun'ichi Nomura authored and Linus Torvalds committed Oct 31, 2006
1 parent 1ffdaf8 commit 8f3637a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a7aacdf9ea45bf6139cfd750e558a3dcbc6f16c3
refs/heads/master: bcb55165d3d1ae3ec95807d118fd6d5956cd127b
5 changes: 4 additions & 1 deletion trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,11 @@ static int bd_claim_by_kobject(struct block_device *bdev, void *holder,

mutex_lock_nested(&bdev->bd_mutex, BD_MUTEX_PARTITION);
res = bd_claim(bdev, holder);
if (res == 0)
if (res == 0) {
res = add_bd_holder(bdev, bo);
if (res)
bd_release(bdev);
}
if (res)
free_bd_holder(bo);
mutex_unlock(&bdev->bd_mutex);
Expand Down

0 comments on commit 8f3637a

Please sign in to comment.