Fixes the init value of down_port_groups_idx to 0 so it's in the port group interval. This way __osm_ftree_fabric_route_upgoing_by_going_down can use the index directly without segfaulting.
Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]> --- opensm/opensm/osm_ucast_ftree.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c index 4e65c87..eae1ed8 100644 --- a/opensm/opensm/osm_ucast_ftree.c +++ b/opensm/opensm/osm_ucast_ftree.c @@ -563,7 +563,7 @@ static ftree_sw_t *__osm_ftree_sw_create(IN ftree_fabric_t * p_ftree, /* initialize lft buffer */ memset(p_osm_sw->new_lft, OSM_NO_PATH, IB_LID_UCAST_END_HO + 1); - p_sw->down_port_groups_idx = -1; + p_sw->down_port_groups_idx = 0; return p_sw; } /* __osm_ftree_sw_create() */ -- 1.6.1 _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
