Revert "Revert "efi_loader: efi_allocate_pages is too restrictive""

This reverts commit ccfc78b820.

Now that the underlying issue is fixed, we can revert the revert and hence
restore the original EFI code.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Stephen Warren 2018-08-30 15:43:45 -06:00 committed by Alexander Graf
parent 0797f7f0b7
commit 14deb5e628

View file

@ -303,7 +303,7 @@ efi_status_t efi_allocate_pages(int type, int memory_type,
switch (type) {
case EFI_ALLOCATE_ANY_PAGES:
/* Any page */
addr = efi_find_free_memory(len, gd->start_addr_sp);
addr = efi_find_free_memory(len, -1ULL);
if (!addr) {
r = EFI_NOT_FOUND;
break;