]> git.baikalelectronics.ru Git - kernel.git/commit
sock: correctly test SOCK_TIMESTAMP in sock_recv_ts_and_drops()
authorEric Dumazet <edumazet@google.com>
Fri, 31 Mar 2017 21:59:25 +0000 (14:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 02:34:55 +0000 (19:34 -0700)
commit0808c4025a6173b1dd306f80078a5b7eb0aba53a
treeb95dadd63a823008c3591a57b6de9aa1d89e4b8d
parent97a894658c6900023837a18466d7639b5633afa5
sock: correctly test SOCK_TIMESTAMP in sock_recv_ts_and_drops()

It seems the code does not match the intent.

This broke packetdrill, and probably other programs.

Fixes: 29a40f3f0640 ("sock: avoid dirtying sk_stamp, if possible")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Paolo Abeni <pabeni@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h