]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix thunderdome segfault
authorDan Williams <dan.j.williams@intel.com>
Sat, 12 Dec 2009 20:57:25 +0000 (13:57 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 12 Dec 2009 20:57:25 +0000 (13:57 -0700)
commitecf408e9149dbd6ef61fdcbc92c5816c0eb7fc84
tree7bbcd995e62b6680e0d837a112081c244a2a4205
parentac6449bee9b40b0e8131005dc0cbe2d91a070ae2
imsm: fix thunderdome segfault

disk_list_get() can return NULL if:
1/ A formerly missing disk is re-added
2/ The original array has not been rebuilt, so the family number of the
   missing disk still matches
3/ The metadata record of the in-sync disks are read before the missing
   disk

This will result in the missing disk not adding its own serial number to
the disk_list, only its truncated value will be present.

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