]> git.sur5r.net Git - u-boot/commit
efi_loader: fix bug in efi_get_memory_map
authorRob Clark <robdclark@gmail.com>
Wed, 26 Jul 2017 18:34:05 +0000 (14:34 -0400)
committerAlexander Graf <agraf@suse.de>
Wed, 26 Jul 2017 20:09:49 +0000 (22:09 +0200)
commita1b24823b6c22ede11d311b05ea862965ea86b0b
tree3c6dd073d2705734c5708d9b2c326555613d3ae5
parentf4f9993f7ed0384f110324bb048a6cafb535378a
efi_loader: fix bug in efi_get_memory_map

When booting shim -> fallback -> shim -> grub -> linux the memory map is
a bit larger than the size linux passes in on the first call.  But in
the EFI_BUFFER_TOO_SMALL case we were not passing back the updated size
to linux so it would loop forever.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c