summaryrefslogtreecommitdiff
path: root/net/tls
diff options
context:
space:
mode:
authorGal Pressman <gal@nvidia.com>2022-01-17 12:27:32 +0300
committerDavid S. Miller <davem@davemloft.net>2022-01-17 16:07:47 +0300
commitdb094aa8140e6da25ba77345b24a8af0c220665e (patch)
tree7b401200428d6477ed70dd6e003e647c3bb3210f /net/tls
parentc0b7f7d7e0ad44f35745c01964b3fa2833e298cb (diff)
downloadlinux-db094aa8140e6da25ba77345b24a8af0c220665e.tar.xz
net/tls: Fix another skb memory leak when running kTLS traffic
This patch is a followup to commit ffef737fd037 ("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: f35f821935d8 ("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>
Diffstat (limited to 'net/tls')
-rw-r--r--net/tls/tls_sw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index 95e774f1b91f..efc84845bb6b 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -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;
}