Skip to content
Commit f756fe83 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

efi_loader: AllocateAdress error handling



If AllocatePages() is called with AllocateAddress, the UEFI spec requires
to return EFI_NOT_FOUND in case the memory page does not exist.

The UEFI SCT II 2017 spec additionally requires to return EFI_NOT_FOUND if
the page is already allocated.

Check that *Memory refers to an unallocated page.

UEFI SCT II (2017): AllocatePages(), 5.1.2.1.9 - 5.1.2.1.10

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 735fd228
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment