[U-Boot] [PATCH] efi_loader: workaround for grub lsefi bug
Rob Clark
robdclark at gmail.com
Thu Jul 20 11:59:39 UTC 2017
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 <robdclark at gmail.com>
---
lib/efi_loader/efi_boottime.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 27e51a253f..a45de39919 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -637,6 +637,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);
}
--
2.13.0
More information about the U-Boot
mailing list