OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01bf1c
)
[SOCK] sk_stamp: should be initialized to ktime_set(-1L, 0)
author
Eric Dumazet
<dada1@cosmosbay.com>
Mon, 14 Apr 2008 04:39:26 +0000
(21:39 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Apr 2008 04:39:26 +0000
(21:39 -0700)
Problem spotted by Andrew Brampton
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
patch
|
blob
|
history
diff --git
a/net/core/sock.c
b/net/core/sock.c
index
2654c14
..
7a0567b
100644
(file)
--- 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);