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)
commitd3fbff306c215946cdbcf9ace4d0b78e9f72b5c4
treeb95dadd63a823008c3591a57b6de9aa1d89e4b8d
parente270e966868530d2667ac0a0b1080560b2965408
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: 6c7c98bad488 ("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