mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
net/tls: Fix another skb memory leak when running kTLS traffic
This patch is a followup to commitffef737fd0
("net/tls: Fix skb memory leak when running kTLS traffic") Which was missing another sk_defer_free_flush() call in tls_sw_splice_read(). Fixes:f35f821935
("tcp: defer skb freeing after socket lock is released") Signed-off-by: Gal Pressman <gal@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c0b7f7d7e0
commit
db094aa814
@ -2059,6 +2059,7 @@ ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
|
||||
|
||||
splice_read_end:
|
||||
release_sock(sk);
|
||||
sk_defer_free_flush(sk);
|
||||
return copied ? : err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user