]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: correct parameter size in efi_allocate_pool
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 18 Mar 2019 19:01:59 +0000 (20:01 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 20 Mar 2019 17:16:53 +0000 (18:16 +0100)
commit1f8f1e81d1fdc0ceab2f89be112a0fab5956a166
tree518cacf320d22ef1605bd44ed252e0733f5539eb
parent35d429535581885605911ce5eeec1e36d30df6c2
efi_loader: correct parameter size in efi_allocate_pool

efi_allocate_pages() expects a (uint64_t *) pointer to pass the address of
the assigned memory. If we pass the address of a pointer here, an illegal
memory access occurs on 32bit systems.

Fixes: 3f9078147c7c ("efi_loader: Expose U-Boot addresses in memory map
for sandbox")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_memory.c