efi_loader: sanity checks when freeing memory
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 26 Mar 2019 04:31:41 +0000 (05:31 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Apr 2019 12:17:06 +0000 (14:17 +0200)
commit2c3ec289359a67ea0dda50af5530621d64d59b2d
tree4186bd1db25d8823546d77ed35a16f8805ef9b6e
parent1c606e8490ee1a858443a04ecc70dc70090fa204
efi_loader: sanity checks when freeing memory

Use a checksum to validate that efi_free_pool() is only called for memory
allocated by efi_allocated_pool().

Add a plausibility check to efi_free_pages() checking that the address
passed is page aligned.

Update related function comments to match Sphinx style.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_memory.c