|
@@ -1680,6 +1680,7 @@ struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority)
|
|
|
|
|
|
/* sk->sk_memcg will be populated at accept() time */
|
|
/* sk->sk_memcg will be populated at accept() time */
|
|
newsk->sk_memcg = NULL;
|
|
newsk->sk_memcg = NULL;
|
|
|
|
+ memset(&newsk->sk_cgrp_data, 0, sizeof(newsk->sk_cgrp_data));
|
|
|
|
|
|
atomic_set(&newsk->sk_drops, 0);
|
|
atomic_set(&newsk->sk_drops, 0);
|
|
newsk->sk_send_head = NULL;
|
|
newsk->sk_send_head = NULL;
|
|
@@ -1718,8 +1719,6 @@ struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority)
|
|
newsk->sk_incoming_cpu = raw_smp_processor_id();
|
|
newsk->sk_incoming_cpu = raw_smp_processor_id();
|
|
atomic64_set(&newsk->sk_cookie, 0);
|
|
atomic64_set(&newsk->sk_cookie, 0);
|
|
|
|
|
|
- cgroup_sk_alloc(&newsk->sk_cgrp_data);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Before updating sk_refcnt, we must commit prior changes to memory
|
|
* Before updating sk_refcnt, we must commit prior changes to memory
|
|
* (Documentation/RCU/rculist_nulls.txt for details)
|
|
* (Documentation/RCU/rculist_nulls.txt for details)
|