]> git.ipfire.org Git - thirdparty/mdadm.git/commit - restripe.c
Fix serious memory leak
authorLukasz Dorau <lukasz.dorau@intel.com>
Mon, 19 Sep 2011 03:26:05 +0000 (13:26 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 19 Sep 2011 03:26:05 +0000 (13:26 +1000)
commit758be4f1c9cda8eefb2fd241835521462196e16c
treecfd228315e416d32cee78217f2e89f92087a7a7e
parenta8619d23b863cdce388527e1da12fea56f56c891
Fix serious memory leak

During reshape function restore_stripes is called periodically
and every time the buffer stripe_buf (of size raid_disks*chunk_size)
is allocated but is not freed. It happens also upon successful completion.
In case of huge arrays it can lead to the seizure of the entire
system memory (even of the order of gigabytes).

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
restripe.c