diff options
author | Dan Williams <dan.j.williams@intel.com> | 2020-01-13 20:22:43 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-01-20 10:14:29 +0300 |
commit | 1db91035d01aa8bfa2350c00ccb63d629b4041ad (patch) | |
tree | 8e71bbf16648063805b4a959510cd45852733bf2 /Documentation/iio | |
parent | 26c0e44a213b272abec0e8fba4a5a2801f95208e (diff) | |
download | linux-1db91035d01aa8bfa2350c00ccb63d629b4041ad.tar.xz |
efi: Add tracking for dynamically allocated memmaps
In preparation for fixing efi_memmap_alloc() leaks, add support for
recording whether the memmap was dynamically allocated from slab,
memblock, or is the original physical memmap provided by the platform.
Given this tracking is established in efi_memmap_alloc() and needs to be
carried to efi_memmap_install(), use 'struct efi_memory_map_data' to
convey the flags.
Some small cleanups result from this reorganization, specifically the
removal of local variables for 'phys' and 'size' that are already
tracked in @data.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200113172245.27925-12-ardb@kernel.org
Diffstat (limited to 'Documentation/iio')
0 files changed, 0 insertions, 0 deletions