mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-24 09:34:15 +00:00
Error check the right thing in get_variable_attr() when allocating.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
3a7feeff6c
commit
293f28d1fe
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user