diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-03-04 13:02:29 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2015-04-01 12:46:23 +0100 |
commit | a643375f4b175569bc3c03c7a3e758f845c1ccd9 (patch) | |
tree | 89b4845b7d2ff481efcf23dfbf0f5e6b328e1701 /arch/s390/kernel/compat_audit.c | |
parent | 744937b0b12a669f298949c4a810794c59fead98 (diff) |
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>
Diffstat (limited to 'arch/s390/kernel/compat_audit.c')
0 files changed, 0 insertions, 0 deletions