aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-08-17 15:15:23 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-08-17 17:24:08 +0200
commit426a15893f16c5f640bf8380b6a9086906e2f659 (patch)
tree0cbdb3710b5534dee1333eca68adb843e8aa8caa
parent49d225e7bf3a26adfe6093978c04e454c82bd955 (diff)
downloadu-boot-426a15893f16c5f640bf8380b6a9086906e2f659.zip
u-boot-426a15893f16c5f640bf8380b6a9086906e2f659.tar.gz
u-boot-426a15893f16c5f640bf8380b6a9086906e2f659.tar.bz2
efi_loader: use EfiBootServicesData for device path
dp_alloc() was using a constant from the wrong enum resulting in creating device paths in EfiReservedMemory. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--lib/efi_loader/efi_device_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index 9c3ac71..cbdb466 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -68,7 +68,7 @@ static void *dp_alloc(size_t sz)
{
void *buf;
- if (efi_allocate_pool(EFI_ALLOCATE_ANY_PAGES, sz, &buf) !=
+ if (efi_allocate_pool(EFI_BOOT_SERVICES_DATA, sz, &buf) !=
EFI_SUCCESS) {
debug("EFI: ERROR: out of memory in %s\n", __func__);
return NULL;