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 <[email protected]> Reviewed-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 8af52fe commit 1b205d9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)