IB/iser: Avoid dereferencing iscsi_iser conn object when not bound to iser connection
authorRoi Dayan <roid@mellanox.com>
Tue, 4 Feb 2014 14:54:54 +0000 (16:54 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 14 Feb 2014 17:48:03 +0000 (09:48 -0800)
commit7d9eacf9457efc6b614665e1095336c11ad83f0d
tree0992c780cf2480cb3999f0b249be37161e849f91
parent38dbfb59d1175ef458d006556061adeaa8751b72
IB/iser: Avoid dereferencing iscsi_iser conn object when not bound to iser connection

Fix a possible NULL pointer dereference in disconnection flow. This
can happen if the target disconnected/rejected the connection request,
e.g before the binding stage between iscsi connection to the transport
connection.

Signed-off-by: Alex Tabachnik <alext@mellanox.com>
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c