diff options
author | Eric Dumazet | 2015-03-13 00:44:03 +0100 |
---|---|---|
committer | David S. Miller | 2015-03-13 03:58:12 +0100 |
commit | bd337c581b2b0d933d37f664bf55b342577fed3a (patch) | |
tree | ec450b42ebb3369f46c64f63a43a3915053205c6 /include/net/inet_sock.h | |
parent | cls_bpf: do eBPF invocation under non-bh RCU lock variant for maps (diff) | |
download | kernel-qcow2-linux-bd337c581b2b0d933d37f664bf55b342577fed3a.tar.gz kernel-qcow2-linux-bd337c581b2b0d933d37f664bf55b342577fed3a.tar.xz kernel-qcow2-linux-bd337c581b2b0d933d37f664bf55b342577fed3a.zip |
ipv6: add missing ireq_net & ir_cookie initializations
I forgot to update dccp_v6_conn_request() & cookie_v6_check().
They both need to set ireq->ireq_net and ireq->ir_cookie
Lets clear ireq->ir_cookie in inet_reqsk_alloc()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 33cf7c90fe2f ("net: add real socket cookies")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_sock.h')
-rw-r--r-- | include/net/inet_sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index e565afdc14ad..30f7170abbf3 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h @@ -249,6 +249,7 @@ static inline struct request_sock *inet_reqsk_alloc(struct request_sock_ops *ops if (req != NULL) { kmemcheck_annotate_bitfield(ireq, flags); ireq->opt = NULL; + atomic64_set(&ireq->ir_cookie, 0); } return req; |