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

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