]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
Detail: fix segfault during IMSM raid creation
[thirdparty/mdadm.git] / Detail.c
index b6587c8c8db356b04ea3613f2e02d902a64d2943..ea86884792cd9ebcf034d3a71387a315ded3f1fa 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -224,7 +224,7 @@ int Detail(char *dev, struct context *c)
        }
 
        /* Ok, we have some info to print... */
        }
 
        /* Ok, we have some info to print... */
-       if (inactive)
+       if (inactive && info)
                str = map_num(pers, info->array.level);
        else
                str = map_num(pers, array.level);
                str = map_num(pers, info->array.level);
        else
                str = map_num(pers, array.level);