Skip to content
Commit 668a84c1 authored by Changbin Du's avatar Changbin Du Committed by Ard Biesheuvel
Browse files

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: default avatarChangbin Du <changbin.du@gmail.com>
Fixes: b91540d5

 ("RISC-V: Add EFI runtime services")
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 6efb943b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment