summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/efi_loader/efi_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index b75722dac3..adbeb1db6b 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -424,7 +424,7 @@ efi_status_t efi_allocate_pages(int type, int memory_type,
/* Any page */
addr = efi_find_free_memory(len, -1ULL);
if (!addr) {
- r = EFI_NOT_FOUND;
+ r = EFI_OUT_OF_RESOURCES;
break;
}
break;
@@ -432,7 +432,7 @@ efi_status_t efi_allocate_pages(int type, int memory_type,
/* Max address */
addr = efi_find_free_memory(len, *memory);
if (!addr) {
- r = EFI_NOT_FOUND;
+ r = EFI_OUT_OF_RESOURCES;
break;
}
break;