mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
arm64: efi: only attempt efi map setup if booting via EFI
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 <[email protected]> Acked-by: Catalin Marinas <[email protected]> Signed-off-by: Matt Fleming <[email protected]>
This commit is contained in:
parent
345c736edd
commit
74bcc24992
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue