Message ID | 1271285281.17987.140.camel@auk31.llnl.gov (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc_cache.c b/infiniband-diags/libibnetdisc/src/ibnetdisc_cache.c index 2ec353d..a02fcba 100644 --- a/infiniband-diags/libibnetdisc/src/ibnetdisc_cache.c +++ b/infiniband-diags/libibnetdisc/src/ibnetdisc_cache.c @@ -505,6 +505,11 @@ static int _fill_port(ibnd_fabric_cache_t * fabric_cache, ibnd_node_t * node, return -1; } + if (port_cache->port_stored_to_fabric) { + IBND_DEBUG("Cache invalid: duplicate port discovered\n"); + return -1; + } + node->ports[port_cache->port->portnum] = port_cache->port; port_cache->port_stored_to_fabric++;