[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] hwtable.c segfault
- From: Mark Haverkamp <markh osdl org>
- To: dm-devel redhat com, Christophe Varoqui <christophe varoqui free fr>
- Cc:
- Subject: [dm-devel] [PATCH] hwtable.c segfault
- Date: Tue, 10 Jan 2006 13:09:37 -0800
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]