diff options
Diffstat (limited to 'drivers/md/dm-raid.c')
| -rw-r--r-- | drivers/md/dm-raid.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 4e79ebaab3c..89a06a36133 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -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;  			}  |