OpenSM/osm_sm_state_mgr.c: In
__osm_sm_state_mgr_send_master_sm_info_req, handle master GUID port not
found properly
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>
diff --git a/osm/opensm/osm_sm_state_mgr.c b/osm/opensm/osm_sm_state_mgr.c
index 41153fc..002821b 100644
--- a/osm/opensm/osm_sm_state_mgr.c
+++ b/osm/opensm/osm_sm_state_mgr.c
@@ -231,6 +231,11 @@ __osm_sm_state_mgr_send_master_sm_info_r
*/
p_port = ( osm_port_t * ) cl_qmap_get( &p_sm_mgr->p_subn->port_guid_tbl,
p_sm_mgr->master_guid );
+ if( p_port ==
+ ( osm_port_t * ) cl_qmap_end( &p_sm_mgr->p_subn->port_guid_tbl ) )
+ {
+ p_port = NULL;
+ }
}
else
{
_______________________________________________
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