summaryrefslogtreecommitdiff
path: root/drivers/firmware/pcdp.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-03-08 11:08:57 +0300
committerIngo Molnar <mingo@kernel.org>2020-03-08 12:00:07 +0300
commitac82d356994dd24616a59a95c575543aab44a00b (patch)
tree4f967bcdd91af1cab213cd3db8262c4b36f3751c /drivers/firmware/pcdp.h
parent8d8ab66a717aca0941da3b1d57d350f3b523df43 (diff)
downloadlinux-ac82d356994dd24616a59a95c575543aab44a00b.tar.xz
efi/libstub/x86: Use ULONG_MAX as upper bound for all allocations
The header flag XLF_CAN_BE_LOADED_ABOVE_4G will inform us whether allocations above 4 GiB for kernel, command line, etc are permitted, so we take it into account when calling efi_allocate_pages() etc. However, CONFIG_EFI_STUB implies CONFIG_RELOCATABLE, and so the flag is guaranteed to be set on x86_64 builds, whereas i386 builds are guaranteed to run under firmware that will not allocate above 4 GB in the first place. So drop the check, and just pass ULONG_MAX as the upper bound for all allocations. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200303225054.28741-1-ardb@kernel.org Link: https://lore.kernel.org/r/20200308080859.21568-27-ardb@kernel.org
Diffstat (limited to 'drivers/firmware/pcdp.h')
0 files changed, 0 insertions, 0 deletions