]> exis.tech > repos - linux.git/blobdiff - net/core/bpf_sk_storage.c
Merge tag 'hwmon-for-v7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux.git] / net / core / bpf_sk_storage.c
index ecd659f79fd4a0ba6d268cfe4e1a6f68f2ff3177..1d295a8769fad5de6e204b5ee49452a524ac5b8d 100644 (file)
@@ -158,8 +158,6 @@ int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk)
        struct bpf_local_storage_elem *selem;
        int ret = 0;
 
-       RCU_INIT_POINTER(newsk->sk_bpf_storage, NULL);
-
        rcu_read_lock_dont_migrate();
        sk_storage = rcu_dereference(sk->sk_bpf_storage);