Blame SOURCES/0115-RHBZ-1198418-fix-double-free.patch

ecd2a9
---
ecd2a9
 multipathd/main.c |   13 +++++++++----
ecd2a9
 1 file changed, 9 insertions(+), 4 deletions(-)
ecd2a9
ecd2a9
Index: multipath-tools-130222/multipathd/main.c
ecd2a9
===================================================================
ecd2a9
--- multipath-tools-130222.orig/multipathd/main.c
ecd2a9
+++ multipath-tools-130222/multipathd/main.c
ecd2a9
@@ -310,10 +310,15 @@ ev_add_map (char * dev, char * alias, st
ecd2a9
 	/*
ecd2a9
 	 * now we can register the map
ecd2a9
 	 */
ecd2a9
-	if (map_present && (mpp = add_map_without_path(vecs, alias))) {
ecd2a9
-		sync_map_state(mpp);
ecd2a9
-		condlog(2, "%s: devmap %s registered", alias, dev);
ecd2a9
-		return 0;
ecd2a9
+	if (map_present) {
ecd2a9
+		if ((mpp = add_map_without_path(vecs, alias))) {
ecd2a9
+			sync_map_state(mpp);
ecd2a9
+			condlog(2, "%s: devmap %s registered", alias, dev);
ecd2a9
+			return 0;
ecd2a9
+		} else {
ecd2a9
+			condlog(2, "%s: uev_add_map failed", dev);
ecd2a9
+			return 1;
ecd2a9
+		}
ecd2a9
 	}
ecd2a9
 	r = get_refwwid(dev, DEV_DEVMAP, vecs->pathvec, &refwwid);
ecd2a9