"--export" segfaults with non-persistent super blocks
From: Tim Woods <timwoods@uklinux.net> This patch fixes a NULL pointer dereference in Detail.c when running 'mdadm --detail --export' on a device with non-persistent super blocks.
This commit is contained in:
parent
962a108fb7
commit
9bbcc5f7c4
3
Detail.c
3
Detail.c
|
@ -137,7 +137,8 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
|
|||
printf("MD_DEVICES=%d\n", array.raid_disks);
|
||||
printf("MD_METADATA=%d.%d\n", array.major_version,
|
||||
array.minor_version);
|
||||
st->ss->export_super(super);
|
||||
if (super)
|
||||
st->ss->export_super(super);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue