boot/efi: TPM V2 fix for GetEventLog EFI function

This commit is contained in:
Raphael Vogelgsang 2018-01-23 18:58:21 +01:00 committed by Lennart Poettering
parent 68a4b89ca3
commit 16c73c765d
1 changed files with 4 additions and 1 deletions

View 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,