summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-07-20 11:59:39 (GMT)
committerAlexander Graf <agraf@suse.de>2017-07-24 12:47:36 (GMT)
commit661c8327a6a0d8738473aaa79ab165b9e4b0b714 (patch)
tree4015534f4aee1334e5304100f559470b1a3f88d5 /lib
parent09c5ab909c8abfe6a0ee654149345254c0dda13d (diff)
downloadu-boot-fsl-qoriq-661c8327a6a0d8738473aaa79ab165b9e4b0b714.tar.xz
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 <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_boottime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index e09f9da..7d45c18 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);
}