diff options
author | NeilBrown <neilb@suse.de> | 2009-03-09 04:10:52 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-09 04:10:52 +0100 |
commit | bceedeec55eeb5fc37065fed39159a04cffc1307 (patch) | |
tree | 00ace34087ae6bc5f1ec85794d9fecb15a994e8c /Examine.c | |
parent | ddf: fix memory corruption bug. (diff) | |
download | mdadm-bceedeec55eeb5fc37065fed39159a04cffc1307.tar.xz mdadm-bceedeec55eeb5fc37065fed39159a04cffc1307.zip |
Examine: add examine_export for ddf and avoid crashes.
If the personality doesn't provide export_examine_super, don't crash.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -128,7 +128,8 @@ int Examine(mddev_dev_t devlist, int brief, int export, int scan, d = dl_strdup(devlist->devname); dl_add(ap->devs, d); } else if (export) { - st->ss->export_examine_super(st); + if (st->ss->export_examine_super) + st->ss->export_examine_super(st); } else { printf("%s:\n",devlist->devname); st->ss->examine_super(st, homehost); |