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:	Wed, 12 Mar 2008 18:08:48 +0800
From:	Dave Young <hidave.darkstar@...il.com>
To:	akpm@...ux-foundation.org
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH -mm] x86 halt warning fix

While halting kernel report warning at arch/x86/kernel/reboot.c : 424
fix the WARN_ON_ONCE param to ret

Signed-off-by: Dave Young <hidave.darkstar@...il.com>

---
arch/x86/kernel/reboot.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff -upr linux/arch/x86/kernel/reboot.c linux.new/arch/x86/kernel/reboot.c
--- linux/arch/x86/kernel/reboot.c	2008-03-12 17:56:48.000000000 +0800
+++ linux.new/arch/x86/kernel/reboot.c	2008-03-12 17:58:43.000000000 +0800
@@ -421,7 +421,7 @@ static void native_machine_shutdown(void
 
 		schedparm.sched_priority = 99;
 		ret = sched_setscheduler(current, SCHED_RR, &schedparm);
-		WARN_ON_ONCE(1);
+		WARN_ON_ONCE(ret);
 
 		set_cpus_allowed(current, cpumask_of_cpu(reboot_cpu_id));
 	}
--
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