Skip to content

Commit

Permalink
net/tls: Fix another skb memory leak when running kTLS traffic
Browse files Browse the repository at this point in the history
This patch is a followup to
commit ffef737 ("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: f35f821 ("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>
  • Loading branch information
gal-pressman authored and davem330 committed Jan 17, 2022
1 parent c0b7f7d commit db094aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/tls/tls_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit db094aa

Please sign in to comment.