]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: FreePages() must fail with pages = 0
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 25 Apr 2019 16:41:40 +0000 (18:41 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 2 May 2019 16:17:49 +0000 (18:17 +0200)
commite00b82db809725ead77ddfe602c9c8fad1f45ab7
tree5ef3163c65e4de0eb7aace97adcabeaebbaaa362
parent751e928d07ae6ddb2b770b3a4c7f74fd6f2a5a64
efi_loader: FreePages() must fail with pages = 0

The UEFI spec requires that freeing of pages fails if the number of pages
to be freed is 'invalid'. Check that it is not zero.

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