]> git.baikalelectronics.ru Git - kernel.git/commit
tls: rx: don't free the output in case of zero-copy
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 Jul 2022 23:50:29 +0000 (16:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 21:38:51 +0000 (14:38 -0700)
commit3ababb5fd35801133aa758f9eae2a92ad13b2395
treee69fdc259731ea6b977e8a401511aa1e2d165ca4
parentfbf017217c3631b4fb6f5613562f33aad6e0267e
tls: rx: don't free the output in case of zero-copy

In the future we'll want to reuse the input skb in case of
zero-copy so we shouldn't always free darg.skb. Move the
freeing of darg.skb into the non-zc cases. All cases will
now free ctx->recv_pkt (inside let tls_rx_rec_done()).

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c