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>] [day] [month] [year] [list]
Message-Id: <1264456921-13846-1-git-send-email-hschauhan@nulltrace.org>
Date:	Tue, 26 Jan 2010 03:32:01 +0530
From:	Himanshu Chauhan <hschauhan@...ltrace.org>
To:	Linux Kernel <linux-kernel@...r.kernel.org>
Cc:	greg@...ah.com, Himanshu Chauhan <hschauhan@...ltrace.org>
Subject: [PATCH] Handling unhandled BOOT_UNDECIDED as normal reboot

Hi,

The follow patch fixes the following warning:
 warning: enumeration value BOOT_UNDECIDED not handled in switch
by handling UNDECIDED type as a usual reboot (BOOT_KBD).

Is this okay?

Regards
Himanshu

Signed-off-by: Himanshu Chauhan <hschauhan@...ltrace.org>
---
 arch/x86/kernel/reboot.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 5e78483..69c1c18 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -573,6 +573,7 @@ static void native_machine_emergency_restart(void)
 	for (;;) {
 		/* Could also try the reset bit in the Hammer NB */
 		switch (reboot_type) {
+		case BOOT_UNDECIDED: /* for unknown type usual reboot */
 		case BOOT_KBD:
 			mach_reboot_fixups(); /* for board specific fixups */
 
-- 
1.6.3.3

--
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