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]
Date:	Fri, 26 Jun 2009 15:46:13 +0800
From:	Wu Zhangjin <wuzhangjin@...il.com>
To:	LKML <linux-kernel@...r.kernel.org>
Cc:	Wu Zhangjin <wuzj@...ote.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...e.hu>
Subject: [PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle

From: Wu Zhangjin <wuzj@...ote.com>

on !PREEMPT_RT, there is a defined ratelimit in
softirq_check_pending_idel(), but used as rate_limit, so, defining
rate_limit instead of ratelimit will fix it.

Signed-off-by: Wu Zhangjin <wuzj@...ote.com>
---
 kernel/softirq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/softirq.c b/kernel/softirq.c
index 00b4638..38b44c9 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -155,9 +155,9 @@ void softirq_check_pending_idle(void)
  */
 void softirq_check_pending_idle(void)
 {
-	static int ratelimit;
+	static int rate_limit;
 
-	if (ratelimit < 10) {
+	if (rate_limit < 10) {
 		printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
 		       local_softirq_pending());
 		rate_limit++;
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ