]> git.baikalelectronics.ru Git - kernel.git/commit
sock: sockc cookie initializer
authorWillem de Bruijn <willemb@google.com>
Fri, 6 Jul 2018 14:12:56 +0000 (10:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 01:58:49 +0000 (10:58 +0900)
commit122f1b3d55b0405b8f80a0cfb65cecec4021ec7e
tree394fbb294b0ff5a62ff14e306ef727b21f4b2352
parent0ac1cf50861d955d94acda983a1924c231ae59b1
sock: sockc cookie initializer

Initialize the cookie in one location to reduce code duplication and
avoid bugs from inconsistent initialization, such as that fixed in
commit b33e8f119540 ("ip: limit use of gso_size to udp").

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/ipv4/tcp.c
net/packet/af_packet.c