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/trunk@359 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/opensm/user/opensm/osm_switch.c

index 55fc58d..3d4a538 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 );
     /*