summaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-11 20:27:52 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-11 23:28:49 -0400
commitd77c555d325d6ece7d352995c97460988c152f58 (patch)
treef12d4542378153a87083e84df15978cacc722a94 /net/dccp/ipv4.c
parentc78ba6d64c78634a875d1e316676667cabfea256 (diff)
downloadlinux-d77c555d325d6ece7d352995c97460988c152f58.tar.bz2
net: fix CONFIG_NET_NS=n compilation
I forgot to use write_pnet() in three locations. Signed-off-by: Eric Dumazet <edumazet@google.com> Fixes: 33cf7c90fe2f9 ("net: add real socket cookies") Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r--net/dccp/ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index 207281ae3536..a78e0b999f96 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -641,7 +641,7 @@ int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
ireq = inet_rsk(req);
ireq->ir_loc_addr = ip_hdr(skb)->daddr;
ireq->ir_rmt_addr = ip_hdr(skb)->saddr;
- ireq->ireq_net = sock_net(sk);
+ write_pnet(&ireq->ireq_net, sock_net(sk));
atomic64_set(&ireq->ir_cookie, 0);
/*