On Friday June 13, knikanth@xxxxxxxxxx wrote: > Correct disk numbering problem check. > > Signed-off-by: Nikanth Karthikesan <knikanth@xxxxxxx> Good catch, thanks for that! NeilBrown > > --- > diff --git a/drivers/md/linear.c b/drivers/md/linear.c > index 1074824..ec921f5 100644 > --- a/drivers/md/linear.c > +++ b/drivers/md/linear.c > @@ -126,7 +126,7 @@ static linear_conf_t *linear_conf(mddev_t *mddev, int raid_disks) > int j = rdev->raid_disk; > dev_info_t *disk = conf->disks + j; > > - if (j < 0 || j > raid_disks || disk->rdev) { > + if (j < 0 || j >= raid_disks || disk->rdev) { > printk("linear: disk numbering problem. Aborting!\n"); > goto out; > } > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html