forked from Minki/linux
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>
This commit is contained in:
parent
b39685526f
commit
e337aead3a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user