[ofa-general] [PATCH] opensm/osm_ucast_ftree.c: fixing bug in indexing

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Sun Apr 12 08:28:38 PDT 2009


Hi Sasha,

Fixing bug in indexing that was introduced by one of the
recent code cleanups (commit 90e3291c040ef36a3c5e1bb5f76c866b049c79d0).

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

diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index 58d1c14..fa4a0dd 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -1480,7 +1480,7 @@ static void fabric_make_indexing(IN ftree_fabric_t * p_ftree)
 						    new_tuple);

 				/* add the newly discovered switch to the BFS queue */
-				cl_list_insert_tail(&bfs_list, p_sw);
+				cl_list_insert_tail(&bfs_list, p_remote_sw);
 			}
 			/* Done assigning indexes to all the remote switches
 			   that are pointed by the downgoing ports.
@@ -1513,7 +1513,7 @@ static void fabric_make_indexing(IN ftree_fabric_t * p_ftree)
 				fabric_assign_tuple(p_ftree,
 						    p_remote_sw, new_tuple);
 				/* add the newly discovered switch to the BFS queue */
-				cl_list_insert_tail(&bfs_list, p_sw);
+				cl_list_insert_tail(&bfs_list, p_remote_sw);
 			}
 			/* Done assigning indexes to all the remote switches
 			   that are pointed by the upgoing ports.
-- 
1.5.1.4




More information about the general mailing list