projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f0438
)
[NET]: "wrong timeout value in sk_wait_data()": cleanups
author
Andrew Morton
<akpm@linux-foundation.org>
Mon, 9 Jul 2007 20:16:00 +0000
(13:16 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:18:50 +0000
(22:18 -0700)
- save 4 bytes
- it's read-mostly.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Vasily Averin <vvs@sw.ru>
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
252d21a
..
091032a
100644
(file)
--- a/
net/core/sock.c
+++ b/
net/core/sock.c
@@
-210,7
+210,8
@@
static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen)
return -EDOM;
if (tv.tv_sec < 0) {
- static int warned = 0;
+ static int warned __read_mostly;
+
*timeo_p = 0;
if (warned < 10 && net_ratelimit())
warned++;