lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200707091851.l69IpBFV001731@imap1.linux-foundation.org>
Date:	Mon, 09 Jul 2007 11:51:10 -0700
From:	akpm@...ux-foundation.org
To:	davem@...emloft.net
Cc:	netdev@...r.kernel.org, akpm@...ux-foundation.org, vvs@...ru
Subject: [patch 3/8] "wrong timeout value in sk_wait_data()": cleanups

From: Andrew Morton <akpm@...ux-foundation.org>

- save 4 bytes

- it's read-mostly.

Cc: "David S. Miller" <davem@...emloft.net>
Acked-by: Vasily Averin <vvs@...ru>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---

 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++;
_
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ