summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.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/ipv4/tcp_input.c
parentc78ba6d64c78634a875d1e316676667cabfea256 (diff)
downloadop-kernel-dev-d77c555d325d6ece7d352995c97460988c152f58.zip
op-kernel-dev-d77c555d325d6ece7d352995c97460988c152f58.tar.gz
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/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index d7045f5..26f2499 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -5965,7 +5965,7 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops,
tmp_opt.tstamp_ok = tmp_opt.saw_tstamp;
tcp_openreq_init(req, &tmp_opt, skb, sk);
- inet_rsk(req)->ireq_net = sock_net(sk);
+ write_pnet(&inet_rsk(req)->ireq_net, sock_net(sk));
atomic64_set(&inet_rsk(req)->ir_cookie, 0);
af_ops->init_req(req, sk, skb);
OpenPOWER on IntegriCloud