diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index d6f12882424d..017f58113c33 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -2026,7 +2026,7 @@ static int run(mddev_t *mddev) | |||
2026 | goto out_free_conf; | 2026 | goto out_free_conf; |
2027 | } | 2027 | } |
2028 | 2028 | ||
2029 | ITERATE_RDEV(mddev, rdev, tmp) { | 2029 | rdev_for_each(rdev, tmp, mddev) { |
2030 | disk_idx = rdev->raid_disk; | 2030 | disk_idx = rdev->raid_disk; |
2031 | if (disk_idx >= mddev->raid_disks | 2031 | if (disk_idx >= mddev->raid_disks |
2032 | || disk_idx < 0) | 2032 | || disk_idx < 0) |