]> asedeno.scripts.mit.edu Git - linux.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)
commitcbca2442a096f7fd8b68e6350d35c3a70182ca20
tree7134ce432e3e2f799835df4b59f8ca76cb4a4049
parent09f8a1486dcaf69753961a6df6cffdaafc5ccbcb
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