]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit0d42f10b236c96e110e1902ecdc8e3c6a9b8b384
tree4186bd1db25d8823546d77ed35a16f8805ef9b6e
parent80e4429b096c7122d5f2c194f1f7dd1f51aa9333
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