imsm: FIX: old devices memory has to be released

When process_update() replaces memory for bigger devices, old memory
areas are collected in a list and has to be assigned in to pointer in
update for later release.

List created from old devices is created and attached to space_list
for later releasing.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2011-01-13 10:06:29 +11:00 committed by NeilBrown
parent f557efbb3f
commit 819bc6345e
1 changed files with 2 additions and 0 deletions

View File

@ -5744,6 +5744,8 @@ static int apply_reshape_container_disks_update(struct imsm_update_reshape *u,
*sp = tofree;
tofree = sp;
}
if (tofree)
*space_list = tofree;
ret_val = 1;
update_reshape_exit: