[PATCH] hwtable.c segfault

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

 



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@xxxxxxxx>

--

dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux