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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:18 +0000 (14:52 -0700)
commita659b62daed52ec4427975a6825d6e8ad8371bc1
tree75c08908d633f6b5cb1d5656b98ea4e4d66037a3
parentcc97152a71882eb513da24549d233fdf79cf9611
Target/iser: Get isert_conn reference once got to connected_handler

commit c2f88b17a1d97ca4ecd96cc22333a7a4f1407d39 upstream.

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>
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