]> 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)
commit126db3da0d90c5518b3409b56109d9c62ffb0d00
treeb95dadd63a823008c3591a57b6de9aa1d89e4b8d
parent179e3f81cd54acd06130f068e9fce0bf5a5d0d93
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: 51213e1d1e46 ("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