]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - managemon.c
mdmon: allow prepare_update to report failure.
[thirdparty/mdadm.git] / managemon.c
index 5f7e2cede00add2f55b2e3e842c62b71d2ea18a1..1c9eccc4c49077095e489ffa4ec32f1089f0120f 100644 (file)
@@ -819,7 +819,8 @@ static void handle_message(struct supertype *container, struct metadata_update *
                mu->space_list = NULL;
                mu->next = NULL;
                if (container->ss->prepare_update)
-                       container->ss->prepare_update(container, mu);
+                       if (!container->ss->prepare_update(container, mu))
+                               free_updates(&mu);
                queue_metadata_update(mu);
        }
 }