1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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

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) 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, 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, static EFI_STATUS tpm2_measure_to_pcr_and_event_log(const EFI_TCG2 *tcg, UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer,