summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-11-15 10:55:37 -0500
committerPeter Jones <pjones@redhat.com>2013-11-21 11:48:24 -0500
commit293f28d1fe3921c5348c60948b4dedcef5042d5b (patch)
treeeaa8b2934397ca0ceb0720d43ca0c7866c2960bc
parent3a7feeff6cdb3b96a1ef2ccff8c150e2324d50a9 (diff)
downloadefi-boot-shim-293f28d1fe3921c5348c60948b4dedcef5042d5b.tar.gz
efi-boot-shim-293f28d1fe3921c5348c60948b4dedcef5042d5b.zip
Error check the right thing in get_variable_attr() when allocating.
Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--lib/variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/variables.c b/lib/variables.c
index 81bd34db..3a9735e6 100644
--- a/lib/variables.c
+++ b/lib/variables.c
@@ -224,7 +224,7 @@ get_variable_attr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner,
return efi_status;
*data = AllocateZeroPool(*len);
- if (!data)
+ if (!*data)
return EFI_OUT_OF_RESOURCES;
efi_status = uefi_call_wrapper(RT->GetVariable, 5, var, &owner,