]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: Fix: klocwork: targets variable can be used uninitialized
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 14 Jun 2011 02:48:53 +0000 (12:48 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Jun 2011 02:48:53 +0000 (12:48 +1000)
commit7e45b5504c66d29b77c16f59dc4f8f0de72145ba
tree9c6f99b92da03bdbeafdcf676ba1498cf9062562
parente1c1d4f4427c0b2bc61914930de55019fdd3dabd
imsm: Fix: klocwork: targets variable can be used uninitialized

When target_offsets allocation fails execution goes to abort label,
where elements from targets table are closed.

Initialize targets table after allocation.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c