iser-target: Fix possible deadlock in RDMA_CM connection error
authorSagi Grimberg <sagig@mellanox.com>
Sun, 29 Mar 2015 12:52:04 +0000 (15:52 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:49 +0000 (23:27 -0700)
commit4a579da2586bd3b79b025947ea24ede2bbfede62
treef0850fe250d94d04e8ac95ccbba448732609a0f3
parent364189f0ada5478e4faf8a552d6071a650d757cd
iser-target: Fix possible deadlock in RDMA_CM connection error

Before we reach to connection established we may get an
error event. In this case the core won't teardown this
connection (never established it), so we take care of freeing
it ourselves.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c