From: Andrew Morton - save 4 bytes - it's read-mostly. Cc: "David S. Miller" Cc: Vasily Averin Signed-off-by: Andrew Morton --- net/core/sock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN net/core/sock.c~wrong-timeout-value-in-sk_wait_data-v2-fix net/core/sock.c --- a/net/core/sock.c~wrong-timeout-value-in-sk_wait_data-v2-fix +++ a/net/core/sock.c @@ -210,7 +210,8 @@ static int sock_set_timeout(long *timeo_ 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++; _