]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: check port_idx of ib event
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 12 Feb 2019 15:29:55 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 16:59:45 +0000 (11:59 -0500)
commit7a6d4e70dabd8b1c932a57fcf60e557d52164700
tree6b89cc72f2966ac3da29473f69f461772e94bf34
parenta37ffa2008cac64b060f083bfe36b327f0de05aa
net/smc: check port_idx of ib event

For robustness protect of higher port numbers than expected to avoid
setting bits behind our port_event_mask. In case of an DEVICE_FATAL
event all ports must be checked. The IB_EVENT_GID_CHANGE event is
provided in the global event handler, so handle it there. And handle a
QP_FATAL event instead of an DEVICE_FATAL event in the qp handler.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ib.c