mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user