[ofa-general] [PATCH] opensm/osm_ucast_mgr.c: cleaning port_order_list

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Wed Aug 13 07:35:04 PDT 2008


Hi Sasha,

Small bug fix in cleaning the port order list.
This bug was causing assertion in list handling.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_ucast_mgr.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opensm/opensm/osm_ucast_mgr.c b/opensm/opensm/osm_ucast_mgr.c
index a686dc9..9d0ad13 100644
--- a/opensm/opensm/osm_ucast_mgr.c
+++ b/opensm/opensm/osm_ucast_mgr.c
@@ -785,8 +785,7 @@ static void ucast_mgr_build_lfts(osm_ucast_mgr_t *p_mgr)
 	cl_qmap_apply_func(&p_mgr->p_subn->sw_guid_tbl,
 			   __osm_ucast_mgr_process_tbl, p_mgr);

-	while(cl_is_qlist_empty(&p_mgr->port_order_list))
-		cl_qlist_remove_head(&p_mgr->port_order_list);
+	cl_qlist_remove_all(&p_mgr->port_order_list);
 }

 /**********************************************************************
-- 
1.5.1.4




More information about the general mailing list