]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot/efi: TPM V2 fix for GetEventLog EFI function
authorRaphael Vogelgsang <donRaphaco@protonmail.com>
Tue, 23 Jan 2018 17:58:21 +0000 (18:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jan 2018 14:03:55 +0000 (15:03 +0100)
src/boot/efi/measure.c

index be4fea84a2888759af674c97995d8e2fdaf5040e..5aaffe8fa528a83c87638a62bbb7b17594079328 100644 (file)
@@ -232,8 +232,11 @@ static EFI_STATUS tpm1_measure_to_pcr_and_event_log(const EFI_TCG *tcg, UINT32 p
  */
 static EFI_STATUS trigger_tcg2_final_events_table(const EFI_TCG2 *tcg, EFI_TCG2_EVENT_LOG_FORMAT log_fmt)
 {
+        EFI_PHYSICAL_ADDRESS loc;
+        EFI_PHYSICAL_ADDRESS last_loc;
+        BOOLEAN truncated;
         return uefi_call_wrapper(tcg->GetEventLog, 5, (EFI_TCG2 *) tcg,
-                                 log_fmt, 0, 0, 0);
+                                 log_fmt, &loc, &last_loc, &truncated);
 }
 
 static EFI_STATUS tpm2_measure_to_pcr_and_event_log(const EFI_TCG2 *tcg, UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer,