projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345c736
)
arm64: efi: only attempt efi map setup if booting via EFI
author
Leif Lindholm
<leif.lindholm@linaro.org>
Fri, 23 May 2014 13:16:56 +0000
(14:16 +0100)
committer
Matt Fleming
<matt.fleming@intel.com>
Fri, 23 May 2014 14:29:43 +0000
(15:29 +0100)
Booting a kernel with CONFIG_EFI enabled on a non-EFI system caused
an oops with the current UEFI support code.
Add the required test to prevent this.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/arm64/kernel/efi.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/kernel/efi.c
b/arch/arm64/kernel/efi.c
index 7bfd65097210c2b8f92c2f521798100946c51bec..14db1f6e8d7fe7064533b41619a35d5502840a43 100644
(file)
--- a/
arch/arm64/kernel/efi.c
+++ b/
arch/arm64/kernel/efi.c
@@
-333,6
+333,9
@@
void __init efi_init(void)
void __init efi_idmap_init(void)
{
+ if (!efi_enabled(EFI_BOOT))
+ return;
+
/* boot time idmap_pg_dir is incomplete, so fill in missing parts */
efi_setup_idmap();
}