Commit 1b205d94 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Paolo Abeni

Revert "net/tls: fix tls_sk_proto_close executed repeatedly"

This reverts commit 69135c57.

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: 69135c57 ("net/tls: fix tls_sk_proto_close executed repeatedly")
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Reviewed-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20220620191353.1184629-1-kuba@kernel.orgSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 8af52fe9
......@@ -921,9 +921,6 @@ static void tls_update(struct sock *sk, struct proto *p,
{
struct tls_context *ctx;
if (sk->sk_prot == p)
return;
ctx = tls_get_ctx(sk);
if (likely(ctx)) {
ctx->sk_write_space = write_space;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment