diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index ad032518fdc00981b344dc5c1c98880defd79095..0d5d0ff2c0f7beb47a02bd4692273b31369b2bc5 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -499,7 +499,7 @@ static void raid10_end_write_request(struct bio *bio, int error) */ one_write_done(r10_bio); if (dec_rdev) - rdev_dec_pending(conf->mirrors[dev].rdev, conf->mddev); + rdev_dec_pending(rdev, conf->mddev); } /*