]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Examine.c
Fix compare_super to take supertype instead of a superblock.
[thirdparty/mdadm.git] / Examine.c
index b5316b9169149c48d47fb9516925f0dfa67869c8..806c55240f64cbf349fdc481c7200b35cf86ec5e 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -107,7 +107,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan,
                        char *d;
                        for (ap=arrays; ap; ap=ap->next) {
                                if (st->ss == ap->st->ss &&
-                                   st->ss->compare_super(&ap->super, super)==0)
+                                   st->ss->compare_super(ap->st, st)==0)
                                        break;
                        }
                        if (!ap) {