diff options
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index ae7c15207df5..5c7fef091cec 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1887,7 +1887,7 @@ static int run(mddev_t *mddev) | |||
1887 | if (!conf->r1bio_pool) | 1887 | if (!conf->r1bio_pool) |
1888 | goto out_no_mem; | 1888 | goto out_no_mem; |
1889 | 1889 | ||
1890 | ITERATE_RDEV(mddev, rdev, tmp) { | 1890 | rdev_for_each(rdev, tmp, mddev) { |
1891 | disk_idx = rdev->raid_disk; | 1891 | disk_idx = rdev->raid_disk; |
1892 | if (disk_idx >= mddev->raid_disks | 1892 | if (disk_idx >= mddev->raid_disks |
1893 | || disk_idx < 0) | 1893 | || disk_idx < 0) |