]> git.baikalelectronics.ru Git - kernel.git/commit
x86/efi: Fix reboot_mode when EFI runtime services are disabled
authorStefan Assmann <sassmann@kpanic.de>
Mon, 24 Jul 2017 12:22:48 +0000 (14:22 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Jul 2017 09:30:45 +0000 (11:30 +0200)
commit7119cf4e91ecb6794c8f88fb5017ad776a8e11ce
treeabbd25866a5224c4644d635eddd97fc539965a8b
parent9b2e25a0b82cf0b744c207114ee7d56a68b7ef4c
x86/efi: Fix reboot_mode when EFI runtime services are disabled

When EFI runtime services are disabled, for example by the "noefi"
kernel cmdline parameter, the reboot_type could still be set to
BOOT_EFI causing reboot to fail.

Fix this by checking if EFI runtime services are enabled.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170724122248.24006-1-sassmann@kpanic.de
[ Fixed 'not disabled' double negation. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/reboot.c