mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 01:56:42 +07:00
scsi: cxgb4i: fix Tx skb leak
In case of connection reset Tx skb queue can have some skbs which are not transmitted so purge Tx skb queue in release_offload_resources() to avoid skb leak. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
4c2a02157f
commit
9b3a081fb6
@ -1575,6 +1575,7 @@ static void release_offload_resources(struct cxgbi_sock *csk)
|
||||
csk, csk->state, csk->flags, csk->tid);
|
||||
|
||||
cxgbi_sock_free_cpl_skbs(csk);
|
||||
cxgbi_sock_purge_write_queue(csk);
|
||||
if (csk->wr_cred != csk->wr_max_cred) {
|
||||
cxgbi_sock_purge_wr_queue(csk);
|
||||
cxgbi_sock_reset_wr_list(csk);
|
||||
|
Loading…
Reference in New Issue
Block a user