Skip to contentSkip to conversation

multipath: don't remove map twice

PATCH New Benjamin Marzinski 1 participant 1 message Feb 10, 2012 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipath: don't remove map twice

If setup_mutipath fails, it removes the map itself, so don't try to again.

---
 multipathd/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
multipathd/main.c +1 -1
Index: multipath-tools-120123/multipathd/main.c
===================================================================
@@ -518,7 +518,7 @@ rescan:
 	 * update our state from kernel regardless of create or reload
 	 */
 	if (setup_multipath(vecs, mpp))
-		goto fail_map;
+		goto fail; /* if setup_multipath fails, it removes the map */
 
 	sync_map_state(mpp);