]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Grow.c
FIX: Use successfully loaded metadata only
[thirdparty/mdadm.git] / Grow.c
diff --git a/Grow.c b/Grow.c
index d4308bcf3811d55ba14f4ef6d62f3fd558746826..017a79dbda49b5e3f2b64b469e7c62111617170d 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -2933,7 +2933,7 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape,
                        continue;
                ok = st->ss->load_super(st, devfd, NULL);
                close(devfd);
-               if (ok >= 0)
+               if (ok == 0)
                        break;
        }
        if (!sd) {