On 25 October 2016 at 19:03, Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx> wrote: > On 25 October 2016 at 17:36, Roy Franz <roy.franz@xxxxxxx> wrote: >> Adjust the size used in calculations to match the actual size of allocation >> that will be performed based on EFI size/alignment constraints. >> efi_high_alloc() and efi_low_alloc() use the passed size in bytes directly >> to find space in the memory map for the allocation, rather than the actual >> allocation size that has been adjusted for size and alignment constraints. >> This results in failed allocations and retries in efi_high_alloc(). The >> same error is present in efi_low_alloc(), although failure will only happen >> if the lowest memory block is small. >> Also use EFI_PAGE_SIZE consistently and remove use of EFI_PAGE_SHIFT to >> calculate page size. >> >> Signed-off-by: Roy Franz <roy.franz@xxxxxxx> > > Reviewed-by: Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx> > Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html