]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Fix compare_super to take supertype instead of a superblock.
[thirdparty/mdadm.git] / Assemble.c
index 7837b19bf4f2c61924eeacd3f58568cebffd1278..98e497640118cbab2227797a6fd6e7b0ff01a234 100644 (file)
@@ -322,7 +322,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
                        st = tst;
                if (st->ss != tst->ss ||
                    st->minor_version != tst->minor_version ||
-                   st->ss->compare_super(&first_super, super) != 0) {
+                   st->ss->compare_super(st, tst) != 0) {
                        /* Some mismatch. If exactly one array matches this host,
                         * we can resolve on that one.
                         * Or, if we are auto assembling, we just ignore the second