summaryrefslogtreecommitdiff
path: root/include/linux/linux_string.h
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2026-07-03 15:46:35 +0300
committerHeinrich Schuchardt <[email protected]>2026-07-16 00:40:43 +0200
commit1f4c391428e5ef17249ccf7af7f4648a73846e51 (patch)
tree0353928d1409b15df118d47dfaa05dd3f2aac1c9 /include/linux/linux_string.h
parent650c2e6203b5ff654d9f5d00ccf7ee1162a30c24 (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 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions