]> git.hungrycats.org Git - linux/commit
tls: rx: assume crypto always calls our callback
authorJakub Kicinski <kuba@kernel.org>
Mon, 11 Apr 2022 19:19:12 +0000 (12:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:47 +0000 (14:38 +0000)
commitbdb7fb29236a52c21c6f2b76354c1699ce19050d
treef780396c2275281f4fde23621431bf7c57381f4c
parent2ec59e16554992ccba9747a1b5e13fc482b0ed15
tls: rx: assume crypto always calls our callback

[ Upstream commit 1c699ffa48a15710746989c36a82cbfb07e8d17f ]

If crypto didn't always invoke our callback for async
we'd not be clearing skb->sk and would crash in the
skb core when freeing it. This if must be dead code.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: f7fa16d49837 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_sw.c