Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305964
b: refs/heads/master
c: 0c09822
h: refs/heads/master
v: v3
  • Loading branch information
Yuanhan Liu authored and NeilBrown committed May 22, 2012
1 parent e16eeac commit 453369c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f0a5e012cf41321d611e7cad63e1017d143d138
refs/heads/master: 0c098220e2320c1f0c9339d0ff05c5e04672133a
3 changes: 3 additions & 0 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -6618,6 +6618,9 @@ static int md_open(struct block_device *bdev, fmode_t mode)
struct mddev *mddev = mddev_find(bdev->bd_dev);
int err;

if (!mddev)
return -ENODEV;

if (mddev->gendisk != bdev->bd_disk) {
/* we are racing with mddev_put which is discarding this
* bd_disk.
Expand Down

0 comments on commit 453369c

Please sign in to comment.