osm_mcast_mgr.c: Fix wrong comparison in mcast_mgr_subdivide()
PATCH 1/1 osm_mcast_mgr.c: Fix wrong comparison in mcast_mgr_subdivide()
From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/[email protected]>
port_num must be less than array_size (num of ports on a node).
--- opensm/osm_mcast_mgr.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
opensm/osm_mcast_mgr.c +1 -3
@@ -605,7 +605,7 @@ static void mcast_mgr_subdivide(osm_sm_t * sm, uint16_t mlid_ho,continue ; } -if (port_num > array_size) { +if (port_num >= array_size) {OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 0A04: " "Error routing MLID 0x%X through switch 0x%" PRIx64 " %s\n"
@@ -616,8 +616,6 @@ static void mcast_mgr_subdivide(osm_sm_t * sm, uint16_t mlid_ho,cl_ntoh16 (osm_port_get_base_lid (p_wobj->p_port)));mcast_work_obj_delete (p_wobj); -/* This is means OpenSM has a bug. */ -CL_ASSERT (FALSE);continue ; }
Signature · 6 lines
1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html