OrangePi_CM5/drivers/firmware/efi/libstub
Sunil V L 00fb385f0a riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value
commit dcf0c838854c86e1f41fb1934aea906845d69782 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:09:31 +01:00
..
Makefile efi/libstub: Add $(CLANG_FLAGS) to x86 flags 2021-05-11 14:47:18 +02:00
alignedmem.c efi/libstub: Fix gcc error around __umoddi3 for 32 bit builds 2020-07-09 09:45:09 +03:00
arm32-stub.c efi/libstub: arm32: Use low allocation for the uncompressed kernel 2020-09-16 18:55:02 +03:00
arm64-stub.c efi/libstub: arm64: Fix image check alignment at entry 2022-02-01 17:25:46 +01:00
efi-stub-helper.c Merge branch 'efi/urgent' into efi/core, to pick up fixes 2020-10-12 13:38:31 +02:00
efi-stub.c efi: stub: omit SetVirtualAddressMap() if marked unsupported in RT_PROP table 2021-03-17 17:06:35 +01:00
efistub.h efi/x86: Add a quirk to support command line arguments on Dell EFI firmware 2020-09-17 10:19:53 +03:00
fdt.c efi/arm64: libstub: Deal gracefully with EFI_RNG_PROTOCOL failure 2020-09-29 15:41:52 +02:00
file.c efi/libstub: prevent read overflow in find_file_option() 2021-06-10 13:39:14 +02:00
gop.c efi/gop: Add an option to list out the available GOP modes 2020-05-20 19:09:20 +02:00
mem.c Linux 5.7-rc7 2020-05-25 15:10:37 +02:00
pci.c
…
random.c
…
randomalloc.c arm64: efi: kaslr: Fix occasional random alloc (and boot) failure 2021-08-18 08:59:14 +02:00
relocate.c efi/libstub: Export efi_low_alloc_above() to other units 2020-09-16 18:54:59 +03:00
riscv-stub.c riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value 2022-03-08 19:09:31 +01:00
secureboot.c
…
skip_spaces.c efi/libstub: Fix missing-prototype warning for skip_spaces() 2020-06-15 19:43:58 +02:00
string.c efi/libstub: Fix missing-prototypes in string.c 2020-09-25 23:29:04 +02:00
tpm.c More EFI changes for v5.8: 2020-05-25 15:11:14 +02:00
vsprintf.c efi/printf: remove unneeded semicolon 2020-09-16 18:53:42 +03:00
x86-stub.c efi/x86: Only copy upto the end of setup_header 2020-06-25 18:09:48 +02:00