]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
efi/fdt: fix panic when no valid fdt found
authorChangbin Du <changbin.du@gmail.com>
Wed, 24 Mar 2021 14:54:35 +0000 (22:54 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:11 +0000 (19:23 +0200)
commit7cb72cec556739d3477d4df5dc4fa789dcf604c1
tree41453835a746373f66d4dd7163805a93b98efff1
parent793d944d9af903430e8b69e705d466915c1bb20b
efi/fdt: fix panic when no valid fdt found

BugLink: https://bugs.launchpad.net/bugs/1933691
[ Upstream commit 668a84c1bfb2b3fd5a10847825a854d63fac7baa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/firmware/efi/fdtparams.c