diff options
| author | Ilias Apalodimas <[email protected]> | 2026-07-03 15:46:35 +0300 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-07-16 00:40:43 +0200 |
| commit | 1f4c391428e5ef17249ccf7af7f4648a73846e51 (patch) | |
| tree | 0353928d1409b15df118d47dfaa05dd3f2aac1c9 /tools/microcode-tool | |
| parent | 650c2e6203b5ff654d9f5d00ccf7ee1162a30c24 (diff) | |
efi_loader: Change the return values if a TPM is missing during GetEventLog
The function defined by the TCG spec looks like:
typedef
EFI_STATUS
(EFIAPI *EFI_TCG2_GET_EVENT_LOG) (
IN EFI_TCG2_PROTOCOL *This,
IN EFI_TCG2_EVENT_LOG_FORMAT EventLogFormat,
OUT EFI_PHYSICAL_ADDRESS *EventLogLocation,
OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry,
OUT BOOLEAN *EventLogTruncated
);
and the spec mandates that
"If no TPM is present, the function SHALL set the following values and return
EFI_SUCCESS:
EventLogLocation = NULL
EventLogLastEntry = NULL
EventLogTruncated = FALSE"
However, if we set it to NULL the local assignment is discarded when the
function returns. Set it to 0, although on some platforms that's a valid
address.
Signed-off-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'tools/microcode-tool')
0 files changed, 0 insertions, 0 deletions
