isert: fix isert connection kref leak at estabished event handler

Fix a missing kref put when isert_conn_established return an error.
By removing set bit ISERT_CONNECTION_ABORTED the connection teardown
will start when recieving the flush WRs.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6947 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Israel Rukshin
2016-08-17 07:28:02 +00:00
parent 3ce0f6604d
commit 9c891f321e
-2
View File
@@ -1553,8 +1553,6 @@ static int isert_cm_connect_handler(struct rdma_cm_id *cm_id,
(struct sockaddr *)&isert_conn->peer_addr,
isert_conn->peer_addrsz);
if (unlikely(ret)) {
set_bit(ISERT_CONNECTION_ABORTED, &isert_conn->flags);
isert_post_drain(isert_conn);
isert_conn_free(isert_conn);
goto out;
}