Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13864515 authored by Nikanth Karthikesan's avatar Nikanth Karthikesan Committed by Neil Brown
Browse files

linear: correct disk numbering error check



From: "Nikanth Karthikesan" <knikanth@novell.com>

Correct disk numbering problem check.

Signed-off-by: default avatarNikanth Karthikesan <knikanth@suse.de>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
parent 9bbbca3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}