Re: [U-Boot] [PATCH 1/1] efi_loader: FreePages() must fail with pages = 0

2019-04-25 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Thu, 25 Apr 2019 19:21:30 +0200 > > 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. Isn't page == 0 a lot clearer if your commit message talks about checking that it is (not) zero

[U-Boot] [PATCH 1/1] efi_loader: FreePages() must fail with pages = 0

2019-04-25 Thread Heinrich Schuchardt
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 --- lib/efi_loader/efi_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/