Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264276
b: refs/heads/master
c: 8232480
h: refs/heads/master
v: v3
  • Loading branch information
Jonthan Brassow authored and Alasdair G Kergon committed Sep 25, 2011
1 parent ed2075e commit 9e186c1
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 876fbba1db4a377f050a2bb49b474c7527b2995d
refs/heads/master: 8232480944d173378082ebb2cac8a3207c08cf31
2 changes: 1 addition & 1 deletion trunk/drivers/md/dm-raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static int parse_raid_params(struct raid_set *rs, char **argv,
rs->ti->error = "write_mostly option is only valid for RAID1";
return -EINVAL;
}
if (value > rs->md.raid_disks) {
if (value >= rs->md.raid_disks) {
rs->ti->error = "Invalid write_mostly drive index given";
return -EINVAL;
}
Expand Down

0 comments on commit 9e186c1

Please sign in to comment.