]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Assemble: correctly capture error from ->write_bitmap
authorNeilBrown <neilb@suse.com>
Wed, 5 Aug 2015 04:55:31 +0000 (14:55 +1000)
committerNeilBrown <neilb@suse.com>
Wed, 5 Aug 2015 04:55:31 +0000 (14:55 +1000)
else 'err' might be undefined.

Signed-off-by: NeilBrown <neilb@suse.com>
Assemble.c

index be4d8c962722731f7f587150619544490216844c..d9e9001274cdd6869025b366724ce92da032377c 100644 (file)
@@ -639,7 +639,7 @@ static int load_devices(struct devs *devices, char *devmap,
                                err = 0;
                        else if (strcmp(c->update, "home-cluster") == 0) {
                                tst->cluster_name = c->homecluster;
-                               tst->ss->write_bitmap(tst, dfd, NameUpdate);
+                               err = tst->ss->write_bitmap(tst, dfd, NameUpdate);
                        } else if (strcmp(c->update, "nodes") == 0) {
                                tst->nodes = c->nodes;
                                err = tst->ss->write_bitmap(tst, dfd, NodeNumUpdate);