md/raid10: avoid memory leak on error path during reshape.
authorNeilBrown <neilb@suse.de>
Mon, 18 Aug 2014 04:48:54 +0000 (14:48 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 19 Aug 2014 07:20:27 +0000 (17:20 +1000)
commite337aead3aa127f083e64ad678a9e89defefcec5
tree6e36cb7b427f96f1ede599a0ca20e19e27c819d2
parentb39685526f46976bcd13aa08c82480092befa46c
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>
drivers/md/raid10.c