Target/iser: Get isert_conn reference once got to connected_handler
authorSagi Grimberg <sagig@mellanox.com>
Wed, 2 Jul 2014 13:19:24 +0000 (16:19 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 15 Sep 2014 21:02:02 +0000 (14:02 -0700)
commitc2f88b17a1d97ca4ecd96cc22333a7a4f1407d39
tree0d93114be7b2fd5dc4dbc5570ed652c57f7ddd67
parent9e82bf014195d6f0054982c463575cdce24292be
Target/iser: Get isert_conn reference once got to connected_handler

In case the connection didn't reach connected state, disconnected
handler will never be invoked thus the second kref_put on
isert_conn will be missing.

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