]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
segfault in imsm create with wrong arguments
[thirdparty/mdadm.git] / super-intel.c
index b880a74c4b16f8890c0edfb6ad54289274fe518e..b3a116f90308d75f2229c6ba1b70a3e78a7a1ce0 100644 (file)
@@ -4119,7 +4119,7 @@ static int default_chunk_imsm(struct supertype *st)
 {
        struct intel_super *super = st->sb;
 
-       if (!super->orom)
+       if (!super || !super->orom)
                return 0;
 
        return imsm_orom_default_chunk(super->orom);