isert: fix missing refcount cleanup at error flow

Before calling to rdma_accept isert kref is 2, so on failure
we must decrease it twice.

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

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6942 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Israel Rukshin
2016-08-17 07:27:38 +00:00
parent 2e4544e351
commit b235efb8d2

View File

@@ -1460,7 +1460,8 @@ out:
fail_accept:
set_bit(ISERT_CONNECTION_ABORTED, &isert_conn->flags);
isert_cm_timewait_exit_handler(cm_id, NULL);
isert_conn_free(isert_conn);
isert_sched_conn_free(isert_conn);
err = 0;
goto out;