iser-target: Fix possible deadlock in RDMA_CM connection error

[ Upstream commit 4a579da258 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Sagi Grimberg 2015-03-29 15:52:04 +03:00 • committed by Sasha Levin
commit 3e2ee0584b