This fix was found by Dan Ben Yosef in ibroute. ibroute and dump_fts should share this code but for now fix the bug in dump_fts.
Signed-off-by: Ira Weiny <[email protected]> --- src/dump_fts.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/dump_fts.c b/src/dump_fts.c index 6cf51f1..89f0dce 100644 --- a/src/dump_fts.c +++ b/src/dump_fts.c @@ -343,7 +343,7 @@ void dump_unicast_tables(ibnd_node_t * node, int startlid, int endlid, printf(" Port Info \n"); startblock = startlid / IB_SMP_DATA_SIZE; endblock = ALIGN(endlid, IB_SMP_DATA_SIZE) / IB_SMP_DATA_SIZE; - for (block = startblock; block <= endblock; block++) { + for (block = startblock; block < endblock; block++) { int status; DEBUG("reading block %d", block); if (!smp_query_status_via(lft, portid, IB_ATTR_LINEARFORWTBL, block, -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
