diff options
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 3ac34ea6ec05..30d5446512f9 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -1035,6 +1035,7 @@ struct sock *sk_alloc(struct net *net, int family, gfp_t priority, | |||
1035 | sk->sk_prot = sk->sk_prot_creator = prot; | 1035 | sk->sk_prot = sk->sk_prot_creator = prot; |
1036 | sock_lock_init(sk); | 1036 | sock_lock_init(sk); |
1037 | sock_net_set(sk, get_net(net)); | 1037 | sock_net_set(sk, get_net(net)); |
1038 | atomic_set(&sk->sk_wmem_alloc, 1); | ||
1038 | } | 1039 | } |
1039 | 1040 | ||
1040 | return sk; | 1041 | return sk; |
@@ -1882,7 +1883,6 @@ void sock_init_data(struct socket *sock, struct sock *sk) | |||
1882 | */ | 1883 | */ |
1883 | smp_wmb(); | 1884 | smp_wmb(); |
1884 | atomic_set(&sk->sk_refcnt, 1); | 1885 | atomic_set(&sk->sk_refcnt, 1); |
1885 | atomic_set(&sk->sk_wmem_alloc, 1); | ||
1886 | atomic_set(&sk->sk_drops, 0); | 1886 | atomic_set(&sk->sk_drops, 0); |
1887 | } | 1887 | } |
1888 | EXPORT_SYMBOL(sock_init_data); | 1888 | EXPORT_SYMBOL(sock_init_data); |