diff options
author | NeilBrown <neilb@suse.de> | 2014-08-18 06:48:54 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-08-19 09:20:27 +0200 |
commit | e337aead3aa127f083e64ad678a9e89defefcec5 (patch) | |
tree | 6e36cb7b427f96f1ede599a0ca20e19e27c819d2 /drivers/md | |
parent | md/raid10: Fix memory leak when raid10 reshape completes. (diff) | |
download | linux-e337aead3aa127f083e64ad678a9e89defefcec5.tar.xz linux-e337aead3aa127f083e64ad678a9e89defefcec5.zip |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid10.c | 1 |
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: * on all the target devices. */ // FIXME + mempool_free(r10_bio, conf->r10buf_pool); set_bit(MD_RECOVERY_INTR, &mddev->recovery); return sectors_done; } |