[ofa-general] [PATCH] opensm/osm_lid_mgr.c bug in opensm LID assignment
Eli Dorfman (Voltaire)
dorfman.eli at gmail.com
Sat May 9 04:29:23 PDT 2009
lid persistent range wrong check
used lids were not properly chekced which
caused duplicate lid assignment in some cases.
Signed-off-by: Eli Dorfman <elid at voltaire.com>
---
opensm/opensm/osm_lid_mgr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_lid_mgr.c b/opensm/opensm/osm_lid_mgr.c
index 14601e1..e1d5106 100644
--- a/opensm/opensm/osm_lid_mgr.c
+++ b/opensm/opensm/osm_lid_mgr.c
@@ -595,7 +595,7 @@ static boolean_t lid_mgr_is_range_not_persistent(IN osm_lid_mgr_t * p_mgr,
return FALSE;
for (i = lid; i < lid + num_lids; i++)
- if (p_mgr->used_lids[lid])
+ if (p_mgr->used_lids[i])
return FALSE;
return TRUE;
--
1.5.3.6
More information about the general
mailing list