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)
commitb93f5700164dabc59f5c82857dbe571e0ccb2d35
treee69fdc259731ea6b977e8a401511aa1e2d165ca4
parentdd47ed3620e693636b4d912db4810fe0c092eb2c
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