From: eitan Date: Mon, 31 Oct 2005 13:38:09 +0000 (+0000) Subject: [OpenSM] - patch for the lmc fix - the assert is wrongly placed. Just make sure X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7e734eea7bb20cc503c6619ed1a029124180490b;p=~shefty%2Frdma-win.git [OpenSM] - patch for the lmc fix - the assert is wrongly placed. Just make sure this is a discovered port. git-svn-id: svn://openib.tc.cornell.edu/gen1@135 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/opensm/user/opensm/osm_lid_mgr.c b/trunk/ulp/opensm/user/opensm/osm_lid_mgr.c index 8f880784..c1042afa 100644 --- a/trunk/ulp/opensm/user/opensm/osm_lid_mgr.c +++ b/trunk/ulp/opensm/user/opensm/osm_lid_mgr.c @@ -477,8 +477,7 @@ __osm_lid_mgr_init_sweep( else { /* check this is a discovered port */ - CL_ASSERT(lid <= max_discovered_lid); - if ((p_port = (osm_port_t *)cl_ptr_vector_get(p_discovered_vec, lid))) + if (lid <= max_discovered_lid && (p_port = (osm_port_t *)cl_ptr_vector_get(p_discovered_vec, lid))) { /* we have a port. Now lets see if we can preserve its lid range. */ /* For that - we need to make sure: