diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 2eca0a81a8c9996b85f63c01fc2b5b0a7f6bc855..ec136e44aef7f89067a3320878f49d94c108d8a5 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -191,7 +191,7 @@ static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data) out_free_pages: while (--j >= 0) - resync_free_pages(&rps[j * 2]); + resync_free_pages(&rps[j]); j = 0; out_free_bio: