[ofa-general] [PATCH] opensm/osm_ucast_ftree.c Increase the size of the hop table

Nicolas Morey-Chaisemartin devel-ofed at morey-chaisemartin.com
Tue May 5 12:33:38 PDT 2009


Le 05/05/2009 15:25, Line.Holen at Sun.COM a écrit :
> The hops table of ftree_sw_t is too small to hold the hop count
> of max_lid. Changed sw_create() to allocate hops[max_lid+1]
> not hops[max_lid].
> 
> Signed-off-by: Line Holen <Line.Holen at sun.com>


This patch seems right to me (at least agrees with other checks).
However, I've been using the ftree algorithm without this fix in thousands of tests and never had any seg fault problem and valgrind showed nothing either...
Would it be possible that the actual value is always < max_lid_ho ? 

Nicolas




More information about the general mailing list