]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Detail: fix segfault during IMSM raid creation
authorLidong Zhong <lidong.zhong@suse.com>
Sun, 22 Nov 2020 15:12:29 +0000 (23:12 +0800)
committerJes Sorensen <jsorensen@fb.com>
Wed, 25 Nov 2020 23:05:05 +0000 (18:05 -0500)
commitc3129b39a7d467eec063681529f46f84a2a85308
tree43a5d62023f8a36687041c47f6e7003ff0500418
parent97b51a2c2d00b79a59f2a8e37134031b0c9e0223
Detail: fix segfault during IMSM raid creation

It can be reproduced with non IMSM hardware and IMSM_NO_PLATFORM
environmental variable set. The array state is inactive when creating
an IMSM container. And the structure info is NULL because load_super()
always fails since no intel HBA information could be obtained.

Signed-off-by: Lidong Zhong <lidong.zhong@suse.com>
Reported-by: Tkaczyk Mariusz <mariusz.tkaczyk@intel.com>
Fixes: 64bf4dff3430 (Detail: show correct raid level when the array is inactive)
Detail.c