Hi Sasha,

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

Signed-off-by: Yevgeny Kliteynik <[EMAIL PROTECTED]>
---
 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

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to