]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/srpt: Fix handling of iWARP logins
authorBart Van Assche <bvanassche@acm.org>
Mon, 30 Sep 2019 23:17:02 +0000 (16:17 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 4 Oct 2019 18:35:06 +0000 (15:35 -0300)
commit72b3b35efb7b139b699b163ac70e92d4ab52a147
tree7134ce432e3e2f799835df4b59f8ca76cb4a4049
parent180da608afe4564fe66affff970ca79db071efd3
RDMA/srpt: Fix handling of iWARP logins

The path_rec pointer is NULL set for IB and RoCE logins but not for iWARP
logins. Hence check the path_rec pointer before dereferencing it.

Link: https://lore.kernel.org/r/20190930231707.48259-11-bvanassche@acm.org
Cc: Honggang LI <honli@redhat.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/srpt/ib_srpt.c