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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:46 +0000 (09:29 -0700)
commit394adc1d4905b143a3f4f6a859a2253becc1101e
tree534babd386dd666d5d8ab1820c3c6daa9b430d00
parent49b028d31aedc00f179c883e87f1b4f2cf55923b
iser-target: Fix possible deadlock in RDMA_CM connection error

commit 4a579da2586bd3b79b025947ea24ede2bbfede62 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c