WSL2-Linux-Kernel/drivers/firmware/efi/libstub
Sunil V L e64d6a689e riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value
commit dcf0c83885 upstream.

The get_boot_hartid_from_fdt() function currently returns U32_MAX
for failure case which is not correct because U32_MAX is a valid
hartid value. This patch fixes the issue by returning error code.

Cc: <stable@vger.kernel.org>
Fixes: d7071743db ("RISC-V: Add EFI stub support.")
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:12:42 +01:00
..
Makefile
alignedmem.c
arm32-stub.c
arm64-stub.c efi/libstub: arm64: Fix image check alignment at entry 2022-02-01 17:27:11 +01:00
efi-stub-helper.c isystem: ship and use stdarg.h 2021-08-19 09:02:55 +09:00
efi-stub.c
efistub.h
fdt.c efi/libstub: Simplify "Exiting bootservices" message 2021-10-05 13:05:58 +02:00
file.c
gop.c
mem.c
pci.c
random.c
randomalloc.c arm64: efi: kaslr: Fix occasional random alloc (and boot) failure 2021-07-20 16:49:48 +02:00
relocate.c
riscv-stub.c riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value 2022-03-08 19:12:42 +01:00
secureboot.c
skip_spaces.c
string.c
tpm.c
vsprintf.c isystem: ship and use stdarg.h 2021-08-19 09:02:55 +09:00
x86-stub.c