mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user