Commit 1c699ffa authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

tls: rx: assume crypto always calls our callback



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: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 72f3ad73
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -268,9 +268,6 @@ static int tls_do_decryption(struct sock *sk,
	if (ret == -EBADMSG)
		TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSDECRYPTERROR);

	if (async)
		atomic_dec(&ctx->decrypt_pending);

	return ret;
}