aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-08-18 00:48:54 -0400
committerNeilBrown <neilb@suse.de>2014-08-19 03:20:27 -0400
commite337aead3aa127f083e64ad678a9e89defefcec5 (patch)
tree6e36cb7b427f96f1ede599a0ca20e19e27c819d2
parentb39685526f46976bcd13aa08c82480092befa46c (diff)
md/raid10: avoid memory leak on error path during reshape.
If raid10 reshape fails to find somewhere to read a block from, it returns without freeing memory... Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--drivers/md/raid10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index a46124ecafc7..e5037e2aadd3 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -4399,6 +4399,7 @@ read_more:
4399 * on all the target devices. 4399 * on all the target devices.
4400 */ 4400 */
4401 // FIXME 4401 // FIXME
4402 mempool_free(r10_bio, conf->r10buf_pool);
4402 set_bit(MD_RECOVERY_INTR, &mddev->recovery); 4403 set_bit(MD_RECOVERY_INTR, &mddev->recovery);
4403 return sectors_done; 4404 return sectors_done;
4404 } 4405 }