osm_trap_rcv.c: fix crash in babbling port feature
PATCH 1/1 osm_trap_rcv.c: fix crash in babbling port feature
From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/[email protected]>
Port number should be less than number of ports (and never equal to).
--- opensm/osm_trap_rcv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osm_trap_rcv.c +1 -1
@@ -91,7 +91,7 @@ static osm_physp_t *get_physp_by_lid_and_num(IN osm_sm_t * sm,if (!p_port)return NULL ; -if (osm_node_get_num_physp (p_port->p_node) < num) +if (osm_node_get_num_physp (p_port->p_node) <= num)return NULL ;return osm_node_get_physp_ptr (p_port->p_node, num);
Signature · 6 lines
1.7.8.2 -- 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