diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-11 08:55:05 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-12 21:54:22 +0300 |
commit | 735fd22800bbe3177edf1491a26794427541102d (patch) | |
tree | 3602d37f48ea29455966402a62729234865d07ea /lib/efi_loader/efi_memory.c | |
parent | 7d3af58ed9aa84175ed92a901db558f443b33e46 (diff) | |
download | u-boot-735fd22800bbe3177edf1491a26794427541102d.tar.xz |
efi_loader: out of resources in AllocatePages()
According to the UEFI AllocatePages() has to return EFI_OUT_OF_RESOURCES if
sufficient memory is not available.
Change the return value.
UEFI SCT II (2017): 3.2.1 AllocatePages(), 5.1.2.1.8
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_memory.c')
-rw-r--r-- | lib/efi_loader/efi_memory.c | 4 |
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; |