]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blobdiff - multipath-tools/patches/0106-RHBZ-1159337-fix-double-free.patch
multipath-tools: Update to snapshot from 2013-02-22
[people/stevee/ipfire-3.x.git] / multipath-tools / patches / 0106-RHBZ-1159337-fix-double-free.patch
diff --git a/multipath-tools/patches/0106-RHBZ-1159337-fix-double-free.patch b/multipath-tools/patches/0106-RHBZ-1159337-fix-double-free.patch
new file mode 100644 (file)
index 0000000..cbe4d1e
--- /dev/null
@@ -0,0 +1,20 @@
+---
+ multipathd/main.c |    5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+Index: multipath-tools-130222/multipathd/main.c
+===================================================================
+--- multipath-tools-130222.orig/multipathd/main.c
++++ multipath-tools-130222/multipathd/main.c
+@@ -669,9 +669,8 @@ ev_remove_path (struct path *pp, struct
+                       /*
+                        * update our state from kernel
+                        */
+-                      if (setup_multipath(vecs, mpp)) {
+-                              goto fail;
+-                      }
++                      if (setup_multipath(vecs, mpp))
++                              return 1;
+                       sync_map_state(mpp);
+                       condlog(2, "%s [%s]: path removed from map %s",