Skip to content

Commit 1b205d9

Browse files
kuba-mooPaolo Abeni
authored andcommitted
Revert "net/tls: fix tls_sk_proto_close executed repeatedly"
This reverts commit 69135c5. This commit was just papering over the issue, ULP should not get ->update() called with its own sk_prot. Each ULP would need to add this check. Fixes: 69135c5 ("net/tls: fix tls_sk_proto_close executed repeatedly") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/r/20220620191353.1184629-1-kuba@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 8af52fe commit 1b205d9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

net/tls/tls_main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,6 @@ static void tls_update(struct sock *sk, struct proto *p,
921921
{
922922
struct tls_context *ctx;
923923

924-
if (sk->sk_prot == p)
925-
return;
926-
927924
ctx = tls_get_ctx(sk);
928925
if (likely(ctx)) {
929926
ctx->sk_write_space = write_space;

0 commit comments

Comments
 (0)