Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233658
b: refs/heads/master
c: 8f5f02c
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Feb 16, 2011
1 parent 38c51e3 commit 3cbb7c5
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: cbe6ef1d2622e08e272600b3cb6040bed60f0450
refs/heads/master: 8f5f02c460b7ca74ce55ce126ce0c1e58a3f923d
3 changes: 3 additions & 0 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ static mddev_t * mddev_find(dev_t unit)
{
mddev_t *mddev, *new = NULL;

if (unit && MAJOR(unit) != MD_MAJOR)
unit &= ~((1<<MdpMinorShift)-1);

retry:
spin_lock(&all_mddevs_lock);

Expand Down

0 comments on commit 3cbb7c5

Please sign in to comment.