IB/iser: Fix possible NULL deref at iser_inv_desc()
authorIsrael Rukshin <israelr@mellanox.com>
Wed, 26 Sep 2018 09:44:18 +0000 (09:44 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 28 Sep 2018 15:53:49 +0000 (09:53 -0600)
commit65f07f5a09dacf3b60619f196f096ea3671a5eda
tree899bf4b38053337c9e3ea155e8d67aa5f76d66dc
parent3df6e0234aebc55888069997239fe2847d4cf152
IB/iser: Fix possible NULL deref at iser_inv_desc()

In case target remote invalidates bogus rkey and signature is not used,
pi_ctx is NULL deref.

The commit also fails the connection on bogus remote invalidation.

Fixes: 59caaed7a72a ("IB/iser: Support the remote invalidation exception")
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/iser/iser_initiator.c