[ofa-general] [PATCH] opensm/osm_lid_mgr.c: Fix off by 1 issue with max_lid
Hal Rosenstock
hrosenstock at xsigo.com
Fri Jun 20 15:21:37 PDT 2008
opensm/osm_lid_mgr.c: Fix off by 1 issue with max_lid
Signed-off-by: Hal Rosenstock <hal at xsigo.com>
diff --git a/opensm/opensm/osm_lid_mgr.c b/opensm/opensm/osm_lid_mgr.c
index 0652cd0..b2a6320 100644
--- a/opensm/opensm/osm_lid_mgr.c
+++ b/opensm/opensm/osm_lid_mgr.c
@@ -596,7 +596,7 @@ AfterScanningLids:
p_range->min_lid = lid;
}
if (p_range) {
- p_range->max_lid = p_mgr->p_subn->max_unicast_lid_ho - 1;
+ p_range->max_lid = p_mgr->p_subn->max_unicast_lid_ho;
cl_qlist_insert_tail(&p_mgr->free_ranges, &p_range->item);
OSM_LOG(p_mgr->p_log, OSM_LOG_DEBUG,
"final free lid range [0x%x:0x%x]\n",
More information about the general
mailing list