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

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