summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2019-05-10 21:21:30 +0200
committerHeinrich Schuchardt <[email protected]>2019-05-12 20:54:22 +0200
commit7d3af58ed9aa84175ed92a901db558f443b33e46 (patch)
treec6fe2338c0f0874e783fb94d745dee25bd3edbe1 /scripts/checkpatch.pl
parent96aa99cded0096bd6c6ea2919e6884c54c80f095 (diff)
efi_loader: check memory address before freeing
When we call FreePages() we essentially add memory to our memory map. We shouldn't do this for memory that does not exit. Check if the memory that is to be freed via FreePages() or FreePool() is in our memory map and is not EFI_CONVENTIONAL_MEMORY. This check is mandated by the UEFI specification. Cf. UEFI SCT II (2017), 3.2.2 FreePages(), 5.1.2.1 - 5.1.2.2 Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions