[ofa-general] ***SPAM*** [PATCH] opensm/osm_perfmgr.c: Add assert in sweep_hop_1

Hal Rosenstock hnrose at comcast.net
Tue Apr 21 04:03:05 PDT 2009


as found in osm_state_mgr.c:state_mgr_sweep_hop_1

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/opensm/osm_perfmgr.c b/opensm/opensm/osm_perfmgr.c
index 8d5ed97..20ee57d 100644
--- a/opensm/opensm/osm_perfmgr.c
+++ b/opensm/opensm/osm_perfmgr.c
@@ -568,6 +568,8 @@ static int sweep_hop_1(osm_sm_t * sm)
 	}
 
 	p_node = p_port->p_node;
+	CL_ASSERT(p_node);
+
 	port_num = ib_node_info_get_local_port_num(&p_node->node_info);
 
 	OSM_LOG(sm->p_log, OSM_LOG_DEBUG,



More information about the general mailing list