diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index e644f6f5c4a7722bb3f344f1a0d84987a8141733..7a8bfe2196c9b4e23c79244fc163de8a5f0eab30 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -2262,7 +2262,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10 printk(KERN_NOTICE "md/raid10:%s: %s: Failing raid device\n", mdname(mddev), b); - md_error(mddev, conf->mirrors[d].rdev); + md_error(mddev, rdev); r10_bio->devs[r10_bio->read_slot].bio = IO_BLOCKED; return; }