Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334243
b: refs/heads/master
c: 7386199
h: refs/heads/master
i:
  334241: def39b2
  334239: 6c10e80
v: v3
  • Loading branch information
Jonathan Brassow authored and NeilBrown committed Oct 11, 2012
1 parent fabfc5b commit 3dee721
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: 4ec1e369af83f7ecdfbd48a905e44fc9910115ba
refs/heads/master: 7386199c471f70526bbcc629f072a5a8effe218f
2 changes: 1 addition & 1 deletion trunk/drivers/md/dm-raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static int parse_raid_params(struct raid_set *rs, char **argv,

/* Parameters that take a numeric value are checked here */
if (!strcasecmp(key, "rebuild")) {
if (value > rs->md.raid_disks) {
if (value >= rs->md.raid_disks) {
rs->ti->error = "Invalid rebuild index given";
return -EINVAL;
}
Expand Down

0 comments on commit 3dee721

Please sign in to comment.