]> git.ipfire.org Git - thirdparty/mdadm.git/commit
fix: segfault if subarray is monitored but container is not
authorCzarnowska, Anna <anna.czarnowska@intel.com>
Thu, 13 Jan 2011 13:22:16 +0000 (13:22 +0000)
committerNeilBrown <neilb@suse.de>
Mon, 17 Jan 2011 01:01:11 +0000 (12:01 +1100)
commitc0dc0ad5f8b9f11c49016467628e9f37b80a0853
tree4e68e54eae31430acfc0093dd628ca4dde687a51
parenta93f87eee607d17024b92dccec9c0eff4dc42565
fix: segfault if subarray is monitored but container is not

In this situation to->parent is null so "to" doesn't change to
parent container and to->metadata is still null.
This results in segmentation fault when checking
to->metadata->ss->external.
We should just skip this array as container is needed to move spares to.

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c