isert: fix isert conn cleanup when rdma_accept fails

If rdma_accept fails the state of the qp is modified to error and all
posted recieve buffers will be flushed and because of the flush
the isert conn teardown flow will start.

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

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Israel Rukshin
2016-08-17 07:28:43 +00:00
parent 73b50bce1b
commit 183ef82731

View File

@@ -1524,9 +1524,6 @@ out:
return err;
fail_accept:
set_bit(ISERT_CONNECTION_ABORTED, &isert_conn->flags);
isert_conn_free(isert_conn);
isert_conn_free(isert_conn);
isert_sched_conn_free(isert_conn);
err = 0;
goto out;