diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-12 04:27:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-12 04:28:49 +0100 |
commit | d77c555d325d6ece7d352995c97460988c152f58 (patch) | |
tree | f12d4542378153a87083e84df15978cacc722a94 /net/ipv4/tcp_input.c | |
parent | ipv6: expose RFC4191 route preference via rtnetlink (diff) | |
download | linux-d77c555d325d6ece7d352995c97460988c152f58.tar.xz linux-d77c555d325d6ece7d352995c97460988c152f58.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index d7045f5f6ebf..26f24995bd3d 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); |