]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: AllocateAddress requires page address
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 6 Nov 2022 00:52:13 +0000 (01:52 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 6 Nov 2022 09:50:04 +0000 (10:50 +0100)
commit0ac45aaac5c5adb40c24c73463a959031bf8cb2f
tree9ca1ad441942a83fed8ec1c8633f44f468d9a689
parentd88c3d77556b5222dc4659e7899ee1082326f798
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>
lib/efi_loader/efi_memory.c