aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-07-10 11:10:26 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-07-12 20:30:48 +0200
commitd7eedd9d50334388766a69f99cca7484e04684d6 (patch)
tree7c2c6f750265107c4f3768bb33a8e3d61640ea80 /lib
parent3e49119efbcd2c73d4d5065ce8327e90a941ea02 (diff)
downloadu-boot-d7eedd9d50334388766a69f99cca7484e04684d6.zip
u-boot-d7eedd9d50334388766a69f99cca7484e04684d6.tar.gz
u-boot-d7eedd9d50334388766a69f99cca7484e04684d6.tar.bz2
efi_loader: missing EFI_CALL() in set_capsule_result
efi_set_variable() should be called with EFI_CALL(). Use efi_set_variable_int() instead. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_capsule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c
index 843a3e3..7831a27 100644
--- a/lib/efi_loader/efi_capsule.c
+++ b/lib/efi_loader/efi_capsule.c
@@ -97,11 +97,11 @@ void set_capsule_result(int index, struct efi_capsule_header *capsule,
else
memset(&result.capsule_processed, 0, sizeof(time));
result.capsule_status = return_status;
- ret = efi_set_variable(variable_name16, &efi_guid_capsule_report,
- EFI_VARIABLE_NON_VOLATILE |
- EFI_VARIABLE_BOOTSERVICE_ACCESS |
- EFI_VARIABLE_RUNTIME_ACCESS,
- sizeof(result), &result);
+ ret = efi_set_variable_int(variable_name16, &efi_guid_capsule_report,
+ EFI_VARIABLE_NON_VOLATILE |
+ EFI_VARIABLE_BOOTSERVICE_ACCESS |
+ EFI_VARIABLE_RUNTIME_ACCESS,
+ sizeof(result), &result, false);
if (ret)
log_err("Setting %ls failed\n", variable_name16);
}