[dm-devel] [PATCH] hwtable.c segfault
Mark Haverkamp
markh at osdl.org
Tue Jan 10 21:09:37 UTC 2006
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 at osdl.org>
More information about the dm-devel
mailing list