diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-04-14 04:39:26 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 04:39:26 (GMT) |
commit | f37f0afb2916ccf287428983026261db78c7661a (patch) | |
tree | 0c86b039a03b166dc168b8ef74f6026ffecc81c9 /net/core/sock.c | |
parent | e01bf1c83332c4653ffd30eed20a94a9c83d82b2 (diff) | |
download | linux-fsl-qoriq-f37f0afb2916ccf287428983026261db78c7661a.tar.xz |
[SOCK] sk_stamp: should be initialized to ktime_set(-1L, 0)
Problem spotted by Andrew Brampton
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 2654c14..7a0567b 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1725,7 +1725,7 @@ void sock_init_data(struct socket *sock, struct sock *sk) sk->sk_rcvtimeo = MAX_SCHEDULE_TIMEOUT; sk->sk_sndtimeo = MAX_SCHEDULE_TIMEOUT; - sk->sk_stamp = ktime_set(-1L, -1L); + sk->sk_stamp = ktime_set(-1L, 0); atomic_set(&sk->sk_refcnt, 1); atomic_set(&sk->sk_drops, 0); |