Commit e337aead authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent b3968552
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}