From: "Nikanth Karthikesan" <knikanth@xxxxxxxxxx> Correct disk numbering problem check. Signed-off-by: Nikanth Karthikesan <knikanth@xxxxxxx> Signed-off-by: Neil Brown <neilb@xxxxxxx> ### Diffstat output ./drivers/md/linear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff .prev/drivers/md/linear.c ./drivers/md/linear.c --- .prev/drivers/md/linear.c 2008-06-27 15:19:55.000000000 +1000 +++ ./drivers/md/linear.c 2008-06-27 15:31:20.000000000 +1000 @@ -126,7 +126,7 @@ static linear_conf_t *linear_conf(mddev_ 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