Commit db094aa8 authored by Gal Pressman's avatar Gal Pressman Committed by David S. Miller

net/tls: Fix another skb memory leak when running kTLS traffic

This patch is a followup to
commit ffef737f ("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: f35f8219 ("tcp: defer skb freeing after socket lock is released")
Signed-off-by: default avatarGal Pressman <gal@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c0b7f7d7
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment