diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-06 01:52:13 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-06 10:50:04 +0100 |
commit | 53def68df5ec10c9aaa46d3422c58fc85d0c93e6 (patch) | |
tree | 9ca1ad441942a83fed8ec1c8633f44f468d9a689 /lib/efi_loader/efi_device_path.c | |
parent | 0b4cbeba593058104349a437ceb4d615e99b4019 (diff) |
efi_loader: AllocateAddress requires page address
AllocatePages() can be called with Type=AllocateAddress. Such a call can
only succeed if *Memory points to the address of an unallocated page range.
A call with *Memory being an address that is not page aligned must not
succeed. The UEFI specification requires returning EFI_OUT_OF_RESOURCES
if the requested pages cannot be allocated.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/efi_loader/efi_device_path.c')
0 files changed, 0 insertions, 0 deletions