]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
The loop on all lids was missing the last one
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 23 May 2006 05:35:06 +0000 (05:35 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 23 May 2006 05:35:06 +0000 (05:35 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@359 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/opensm/user/opensm/osm_switch.c

index 55fc58db578d24b2410349deaa2b805646f8141c..3d4a538c7cd1a4c9407a4f7ae426e3082a93c572 100644 (file)
@@ -188,7 +188,7 @@ osm_switch_get_fwd_tbl_block(
   lids_per_block = osm_fwd_tbl_get_lids_per_block( &p_sw->fwd_tbl );
   base_lid_ho = (uint16_t)(block_id * lids_per_block);
 
-  if( base_lid_ho < max_lid_ho )
+  if( base_lid_ho <= max_lid_ho )
   {
     cl_memclr( p_block, IB_SMP_DATA_SIZE );
     /*