File 0001-Assemble-correctly-capture-error-from-write_bitmap.patch of Package mdadm

From d80f7aa9a1bd1582240f2ce48e6dc7c3f82fa182 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb@suse.com>
Date: Wed, 5 Aug 2015 14:55:31 +1000
Subject: [PATCH] Assemble: correctly capture error from ->write_bitmap

else 'err' might be undefined.

Signed-off-by: NeilBrown <neilb@suse.com>
---
 Assemble.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/Assemble.c
+++ b/Assemble.c
@@ -626,7 +626,7 @@ static int load_devices(struct devs *dev
 				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);
openSUSE Build Service is sponsored by