summaryrefslogtreecommitdiff
path: root/shim.c
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
commitf23d76972708dff20d612d90b941f75fc907e4b1 (patch)
tree376c5fea9eec6f4b18c1faeb028f8ae8df2a2c72 /shim.c
parentc16548d08b3b1fb645cc794a3f433fc00767d6cc (diff)
downloadefi-boot-shim-f23d76972708dff20d612d90b941f75fc907e4b1.tar.gz
efi-boot-shim-f23d76972708dff20d612d90b941f75fc907e4b1.zip
Fix get_variable
Diffstat (limited to 'shim.c')
-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;