Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59028
b: refs/heads/master
c: 6f11df8
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and David S. Miller committed Jul 11, 2007
1 parent 83e7fce commit 939af3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60f0438a87cfd9f5faa439ca419497cd64e4c59e
refs/heads/master: 6f11df8355e8f59f7572bf6ac1f63d692483b0c6
3 changes: 2 additions & 1 deletion trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 939af3f

Please sign in to comment.