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>
Wed, 6 May 2015 20:01:56 +0000 (22:01 +0200)
commit898cac8dce3dc725231f7e5f8d6641c27ffa24ca
tree4cfacc80d77c486e5818735c4d73e3698c011798
parentb550a4a6fc788d2b552a5e462677d090e39aee89
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