]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Query.c
Query: don't be confused by partition tables.
[thirdparty/mdadm.git] / Query.c
diff --git a/Query.c b/Query.c
index 329e58390bd265fe864bf896783fc8ed87e809b8..a63a442725e3116f84e19fbc9f6ed5eb8d17dbaa 100644 (file)
--- a/Query.c
+++ b/Query.c
@@ -82,7 +82,7 @@ int Query(char *dev)
                       array.spare_disks, array.spare_disks==1?"":"s");
        }
        st = guess_super(fd);
-       if (st)
+       if (st && st->ss->compare_super != NULL)
                superror = st->ss->load_super(st, fd, dev);
        else
                superror = -1;