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

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