]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix spare promotion
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2009 18:34:20 +0000 (11:34 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2009 18:34:20 +0000 (11:34 -0700)
commit709743c554c78b4bbc4483a3ba6845909d4db6ba
treea20181a0c559a97784269d63538c8b41ce0638a6
parent7cbeb80e900d2cbb47c6de75826769b5addb4867
imsm: fix spare promotion

1/ Fix an off by one error when detecting whether the device allocation
   loop succeeded or not
2/ Update ->num_raid_devs before copying to avoid a segmentation fault

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c