From: Raphael Vogelgsang Date: Tue, 23 Jan 2018 17:58:21 +0000 (+0100) Subject: boot/efi: TPM V2 fix for GetEventLog EFI function X-Git-Tag: v237~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16c73c765da70619b40709f0c52a868b77d2c035;p=thirdparty%2Fsystemd.git boot/efi: TPM V2 fix for GetEventLog EFI function --- diff --git a/src/boot/efi/measure.c b/src/boot/efi/measure.c index be4fea84a28..5aaffe8fa52 100644 --- a/src/boot/efi/measure.c +++ b/src/boot/efi/measure.c @@ -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,