linux-sg2042/drivers/firmware/efi
Ard Biesheuvel a643375f4b efi/libstub: Retrieve FDT size when loaded from UEFI config table
When allocating memory for the copy of the FDT that the stub
modifies and passes to the kernel, it uses the current size as
an estimate of how much memory to allocate, and increases it page
by page if it turns out to be too small. However, when loading
the FDT from a UEFI configuration table, the estimated size is
left at its default value of zero, and the allocation loop runs
starting from zero all the way up to the allocation size that
finally fits the updated FDT.

Instead, retrieve the size of the FDT from the FDT header when
loading it from the UEFI config table.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2015-04-01 12:46:23 +01:00
..
libstub efi/libstub: Retrieve FDT size when loaded from UEFI config table 2015-04-01 12:46:23 +01:00
Kconfig efi: Update the URLs for efibootmgr 2015-01-07 19:06:28 -08:00
Makefile efi/x86: Move x86 back to libstub 2014-11-11 22:23:11 +00:00
cper.c RAS/tracing: Use trace_seq_buffer_ptr() helper instead of open coded 2014-11-19 15:25:37 -05:00
efi-pstore.c efi-pstore: Fix an overflow on 32-bit builds 2014-06-27 07:30:32 +01:00
efi.c arm64 updates for 3.20: 2015-02-11 18:03:54 -08:00
efivars.c efi: Rename efi_guid_unparse to efi_guid_to_str 2015-01-07 19:07:44 -08:00
reboot.c x86/reboot: Add EFI reboot quirk for ACPI Hardware Reduced flag 2014-07-18 21:23:52 +01:00
runtime-map.c efi: Small leak on error in runtime map code 2015-01-20 15:50:25 +00:00
runtime-wrappers.c efi: Delete the in_nmi() conditional runtime locking 2014-10-03 18:41:03 +01:00
vars.c Merge branch 'next' into efi-next-merge 2014-10-03 22:15:56 +01:00