]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Remove possible crash during RAID6 -> RAID5 reshape.
authorNeilBrown <neilb@suse.de>
Thu, 22 Mar 2012 04:34:17 +0000 (15:34 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Mar 2012 04:34:17 +0000 (15:34 +1100)
commit0073a6e189c41ca92123ac11278faddf6355125a
tree1bc653ff701acfde4e808fe91d54be91f6cec31d
parente62b778573d4df5e729cf3941fe17eff1fe4e758
Remove possible crash during RAID6 -> RAID5 reshape.

If a RAID6 array is in a state which doesn't have a
RAID5 equivalent, the code currently dereferences a NULL.

If it does have an equivalent - use that.
If it doesn't but it already in the RAID5-compatible layout
with the Q block last, handle that case,
else require the new layout to be explicitly requested.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c