|
@@ -1677,6 +1677,10 @@ struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority)
|
|
|
newsk->sk_dst_pending_confirm = 0;
|
|
|
newsk->sk_wmem_queued = 0;
|
|
|
newsk->sk_forward_alloc = 0;
|
|
|
+
|
|
|
+ /* sk->sk_memcg will be populated at accept() time */
|
|
|
+ newsk->sk_memcg = NULL;
|
|
|
+
|
|
|
atomic_set(&newsk->sk_drops, 0);
|
|
|
newsk->sk_send_head = NULL;
|
|
|
newsk->sk_userlocks = sk->sk_userlocks & ~SOCK_BINDPORT_LOCK;
|
|
@@ -1714,7 +1718,6 @@ struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority)
|
|
|
newsk->sk_incoming_cpu = raw_smp_processor_id();
|
|
|
atomic64_set(&newsk->sk_cookie, 0);
|
|
|
|
|
|
- mem_cgroup_sk_alloc(newsk);
|
|
|
cgroup_sk_alloc(&newsk->sk_cgrp_data);
|
|
|
|
|
|
/*
|