[U-Boot] [PATCH] efi_loader: fix bug in efi_get_memory_map

Rob Clark robdclark at gmail.com
Wed Jul 26 20:25:29 UTC 2017


On Wed, Jul 26, 2017 at 4:10 PM, Alexander Graf <agraf at suse.de> wrote:
>
>
> On 26.07.17 20:34, Rob Clark wrote:
>>
>> 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 at gmail.com>
>
>
> The spec is actually very explicit about this case. It says in the
> EFI_BUFFER_TOO_SMALL case, we *have* to return the map size.
>

yes, that is what I fixed.  We *weren't* returning the required buffer
size before :-)

BR,
-R


More information about the U-Boot mailing list