efi_loader: AllocatePages() must accept addr == 0
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 12 Jun 2019 05:17:04 +0000 (07:17 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 14 Jun 2019 17:18:40 +0000 (19:18 +0200)
commit0e22c7cbebefae3a01ea2f10ba1772ba693ee1eb
tree4204de91bce0deeba32e196f19fd7b0cbfa4a625
parent98967379b645d7232d4eca22c3b80eaa94a7d7d7
efi_loader: AllocatePages() must accept addr == 0

It must be possible to allocate memory at address 0 with AllocatePages().

Move a NULL pointer check.

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