diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-11 20:27:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-11 23:28:49 -0400 |
commit | d77c555d325d6ece7d352995c97460988c152f58 (patch) | |
tree | f12d4542378153a87083e84df15978cacc722a94 /net/ipv4/syncookies.c | |
parent | c78ba6d64c78634a875d1e316676667cabfea256 (diff) | |
download | linux-d77c555d325d6ece7d352995c97460988c152f58.tar.gz linux-d77c555d325d6ece7d352995c97460988c152f58.tar.bz2 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/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index ece31b426013..18e5a67fda81 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c @@ -346,7 +346,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb) req->ts_recent = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsval : 0; treq->snt_synack = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsecr : 0; treq->listener = NULL; - ireq->ireq_net = sock_net(sk); + write_pnet(&ireq->ireq_net, sock_net(sk)); /* We throwed the options of the initial SYN away, so we hope * the ACK carries the same options again (see RFC1122 4.2.3.8) |