]> exis.tech > repos - linux.git/blobdiff - net/core/sock.c
Merge tag 'hwmon-for-v7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux.git] / net / core / sock.c
index 8a59bfaa8096e002afc63fb7d2fbb01f4dd1533f..498a57f34f5b54c52697f7a76c9529eb59d4abe8 100644 (file)
@@ -2492,6 +2492,9 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority,
        sock_copy(newsk, sk);
 
        newsk->sk_prot_creator = prot;
+#ifdef CONFIG_BPF_SYSCALL
+       RCU_INIT_POINTER(newsk->sk_bpf_storage, NULL);
+#endif
 
        /* SANITY */
        if (likely(newsk->sk_net_refcnt)) {