]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: missing EFI_CALL() in set_capsule_result
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 10 Jul 2021 09:10:26 +0000 (11:10 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 12 Jul 2021 18:30:48 +0000 (20:30 +0200)
efi_set_variable() should be called with EFI_CALL(). Use
efi_set_variable_int() instead.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_capsule.c

index 843a3e3def4ee41aa54de5126508da1c85c17932..7831a2723afee0af06f5af8ec9a295307778983d 100644 (file)
@@ -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);
 }