]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[OpenSM] - patch for the lmc fix - the assert is wrongly placed. Just make sure
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 31 Oct 2005 13:38:09 +0000 (13:38 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 31 Oct 2005 13:38:09 +0000 (13:38 +0000)
this is a discovered port.

git-svn-id: svn://openib.tc.cornell.edu/gen1@135 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/opensm/user/opensm/osm_lid_mgr.c

index 8f880784840e9689ff1e4a6cd92fff1120ea3c32..c1042afa26c0de3744fb6079c978caf88e49351c 100644 (file)
@@ -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: