Merge branch 'rwonce/rework' of git://git.kernel.org/pub/scm/linux/kernel/git/will...
[platform/kernel/linux-starfive.git] / net / tls / tls_main.c
index 0e98900..ec10041 100644 (file)
@@ -629,7 +629,7 @@ struct tls_context *tls_ctx_create(struct sock *sk)
 static void tls_build_proto(struct sock *sk)
 {
        int ip_ver = sk->sk_family == AF_INET6 ? TLSV6 : TLSV4;
-       const struct proto *prot = READ_ONCE(sk->sk_prot);
+       struct proto *prot = READ_ONCE(sk->sk_prot);
 
        /* Build IPv6 TLS whenever the address of tcpv6 _prot changes */
        if (ip_ver == TLSV6 &&