summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/memattr.c
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@gmail.com>2021-03-24 15:54:35 +0100
committerArd Biesheuvel <ardb@kernel.org>2021-05-22 14:03:42 +0200
commit668a84c1bfb2b3fd5a10847825a854d63fac7baa (patch)
treed597578371f536323f7354d4a5e731b7334888b2 /drivers/firmware/efi/memattr.c
parentLinux 5.13-rc1 (diff)
downloadlinux-668a84c1bfb2b3fd5a10847825a854d63fac7baa.tar.xz
linux-668a84c1bfb2b3fd5a10847825a854d63fac7baa.zip
efi/fdt: fix panic when no valid fdt found
setup_arch() would invoke efi_init()->efi_get_fdt_params(). If no valid fdt found then initial_boot_params will be null. So we should stop further fdt processing here. I encountered this issue on risc-v. Signed-off-by: Changbin Du <changbin.du@gmail.com> Fixes: b91540d52a08b ("RISC-V: Add EFI runtime services") Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/memattr.c')
0 files changed, 0 insertions, 0 deletions