opensm/osm_node_info_rcv.c: In ni_rcv_process_existing_ca_or_router, handle error
PATCH 1/1 opensm/osm_node_info_rcv.c: In ni_rcv_process_existing_ca_or_router, handle error
Add handling for case where osm_node_get_physp_ptr returns NULL pointer
---
opensm/osm_node_info_rcv.c +10 -0
@@ -479,6 +479,16 @@ alias_done: }else {osm_physp_t *p_physp =osm_node_get_physp_ptr (p_node, port_num); + +if (p_physp ==NULL ) { +OSM_LOG (sm->p_log,OSM_LOG_ERROR ,"ERR 0D1C: " +"No physical port found for node GUID 0x%" + PRIx64" port %u. Might be duplicate port GUID\n" , +cl_ntoh64 (p_node->node_info.node_guid), + port_num); + goto Exit; + } +/* Update the DR Path to the port, in case the old one is no longer available.
--
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
Hi Hal,
Quoted 5 lines · Hal Rosenstock
Add handling for case where
osm_node_get_physp_ptrreturns NULL pointer---
Applied, thanks.
--
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