summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-06-25 17:46:11 -0400
committerMatthew Garrett <mjg@redhat.com>2012-06-25 17:46:11 -0400
commitc08d0ceb0510c2f3723e54db2d498a0ca92f7717 (patch)
tree376c5fea9eec6f4b18c1faeb028f8ae8df2a2c72
parent1a109376abfc0bdccedab8b2f41740548bfd28df (diff)
downloadefi-boot-shim-c08d0ceb0510c2f3723e54db2d498a0ca92f7717.tar.gz
efi-boot-shim-c08d0ceb0510c2f3723e54db2d498a0ca92f7717.zip
Fix get_variable
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index fa4f2c50..532bff35 100644
--- a/shim.c
+++ b/shim.c
@@ -65,7 +65,7 @@ static EFI_STATUS get_variable (CHAR16 *name, EFI_GUID guid,
char allocate = !!(*size);
efi_status = uefi_call_wrapper(RT->GetVariable, 5, name, &guid,
- &attributes, size, NULL);
+ &attributes, size, buffer);
if (efi_status != EFI_BUFFER_TOO_SMALL || !allocate)
return efi_status;