Skip to content

Commit

Permalink
[SOCK] sk_stamp: should be initialized to ktime_set(-1L, 0)
Browse files Browse the repository at this point in the history
Problem spotted by Andrew Brampton

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 14, 2008
1 parent e01bf1c commit f37f0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f37f0af

Please sign in to comment.