mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
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>
This commit is contained in:
parent
3e49119efb
commit
d7eedd9d50
1 changed files with 5 additions and 5 deletions
|
@ -97,11 +97,11 @@ void set_capsule_result(int index, struct efi_capsule_header *capsule,
|
||||||
else
|
else
|
||||||
memset(&result.capsule_processed, 0, sizeof(time));
|
memset(&result.capsule_processed, 0, sizeof(time));
|
||||||
result.capsule_status = return_status;
|
result.capsule_status = return_status;
|
||||||
ret = efi_set_variable(variable_name16, &efi_guid_capsule_report,
|
ret = efi_set_variable_int(variable_name16, &efi_guid_capsule_report,
|
||||||
EFI_VARIABLE_NON_VOLATILE |
|
EFI_VARIABLE_NON_VOLATILE |
|
||||||
EFI_VARIABLE_BOOTSERVICE_ACCESS |
|
EFI_VARIABLE_BOOTSERVICE_ACCESS |
|
||||||
EFI_VARIABLE_RUNTIME_ACCESS,
|
EFI_VARIABLE_RUNTIME_ACCESS,
|
||||||
sizeof(result), &result);
|
sizeof(result), &result, false);
|
||||||
if (ret)
|
if (ret)
|
||||||
log_err("Setting %ls failed\n", variable_name16);
|
log_err("Setting %ls failed\n", variable_name16);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue