WSL2-Linux-Kernel/drivers/firmware/efi
Ard Biesheuvel 0b1d9debe3 efi/libstub: randomalloc: Return EFI_OUT_OF_RESOURCES on failure
The logic in efi_random_alloc() will iterate over the memory map twice,
once to count the number of candidate slots, and another time to locate
the chosen slot after randomization.

If there is insufficient memory to do the allocation, the second loop
will run to completion without actually having located a slot, but we
currently return EFI_SUCCESS in this case, as we fail to initialize
status to the appropriate error value of EFI_OUT_OF_RESOURCES.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2023-03-23 15:15:45 +01:00
..
libstub efi/libstub: randomalloc: Return EFI_OUT_OF_RESOURCES on failure 2023-03-23 15:15:45 +01:00
test
Kconfig
Makefile
apple-properties.c
arm-runtime.c ARM updates for 6.2 2022-12-13 15:22:14 -08:00
capsule-loader.c
capsule.c
cper-arm.c
cper-x86.c
cper.c EFI updates for v6.2: 2022-12-13 14:31:47 -08:00
cper_cxl.c efi/cper, cxl: Remove cxl_err.h 2023-02-03 23:59:58 +01:00
cper_cxl.h
dev-path-parser.c
earlycon.c efi: earlycon: Reprobe after parsing config tables 2023-03-13 23:28:43 +01:00
efi-bgrt.c
efi-init.c efi: earlycon: Reprobe after parsing config tables 2023-03-13 23:28:43 +01:00
efi-pstore.c EFI updates for v6.2: 2022-12-13 14:31:47 -08:00
efi.c A healthy mix of EFI contributions this time: 2023-02-23 14:41:48 -08:00
efibc.c
embedded-firmware.c
esrt.c efi: Actually enable the ESRT under Xen 2023-01-23 11:33:24 +01:00
fdtparams.c
memattr.c A healthy mix of EFI contributions this time: 2023-02-23 14:41:48 -08:00
memmap.c
mokvar-table.c
rci2-table.c
reboot.c
riscv-runtime.c
runtime-wrappers.c efi: fix userspace infinite retry read efivars after EFI runtime services page fault 2023-01-03 10:52:16 +01:00
sysfb_efi.c efi: sysfb_efi: Add quirk for Lenovo Yoga Book X91F/L 2023-03-18 11:44:57 +01:00
tpm.c
vars.c efi: efivars: prevent double registration 2023-01-26 21:32:01 +01:00