From: Rob Clark Date: Thu, 20 Jul 2017 11:59:39 +0000 (-0400) Subject: efi_loader: workaround for grub lsefi bug X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=661c8327a6a0d8738473aaa79ab165b9e4b0b714;p=u-boot.git efi_loader: workaround for grub lsefi bug Patch has also been sent to fix grub to not ignore the error returned and treat protocol_buffer_count as valid. But that that might take a while to trickle into distro's, so this workaround might be useful. Signed-off-by: Rob Clark Signed-off-by: Alexander Graf --- diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index e09f9dac5c..7d45c18ff7 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -866,6 +866,7 @@ static efi_status_t EFIAPI efi_protocols_per_handle(void *handle, { EFI_ENTRY("%p, %p, %p", handle, protocol_buffer, protocol_buffer_count); + *protocol_buffer_count = 0; return EFI_EXIT(EFI_OUT_OF_RESOURCES); }