ibstat.c: fix core dump if wrong port phys state is reported
PATCH 1/1 ibstat.c: fix core dump if wrong port phys state is reported
Signed-off-by Yevgeny Kliteynik <[email protected]>
--- infiniband-diags/src/ibstat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
infiniband-diags/src/ibstat.c +1 -1
@@ -114,7 +114,7 @@ static int port_dump(umad_port_t * port, int alone) (unsigned )port->state <= 4 ? port_state_str[port->state] : "???");printf ("%sPhysical state: %s\n" , pre, - (unsigned )port->state <= + (unsigned )port->phys_state <=7 ? port_phy_state_str[port->phys_state] :"???" );printf ("%sRate: %d\n" , pre, port->rate);printf ("%sBase lid: %d\n" , pre, port->base_lid);
Signature · 6 lines
1.6.2.4 -- 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
A message that is not in the archive (sent off-list or not yet received): 4CA9A98B.80605-VPRAkNaXOzVS1MOuV/[email protected]
Sasha Khapyorsky
AppliedQuoted 2 lines · Yevgeny Kliteynik
Signed-off-by Yevgeny Kliteynik <[email protected]>
Applied. Thanks.
Sasha
--
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