[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [PATCH] hwtable.c segfault



Christophe,

I built the latest git tree of the multipath tools and had a segfault
starting multipath.  I think that the increment of the hwe pointer is
wrong.  Here is a patch.

diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index a39520e..71728de 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -462,7 +462,7 @@ setup_default_hwtable (vector hw)
 
 	while (hwe->vendor) {
 		r += store_hwe(hw, hwe);
-		hwe += sizeof(struct hwentry);
+		hwe++;
 	}
 	return r;
 }

-- 
Mark Haverkamp <markh osdl org>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]