diff options
author | NeilBrown <neilb@suse.de> | 2014-08-18 14:48:54 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-08-19 17:20:27 +1000 |
commit | e337aead3aa127f083e64ad678a9e89defefcec5 (patch) | |
tree | 6e36cb7b427f96f1ede599a0ca20e19e27c819d2 | |
parent | b39685526f46976bcd13aa08c82480092befa46c (diff) | |
download | op-kernel-dev-e337aead3aa127f083e64ad678a9e89defefcec5.zip op-kernel-dev-e337aead3aa127f083e64ad678a9e89defefcec5.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index a46124e..e5037e2 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; } |