[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240906202745.11159-4-gourry@gourry.net>
Date: Fri, 6 Sep 2024 16:27:42 -0400
From: Gregory Price <gourry@...rry.net>
To: linux-efi@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
ardb@...nel.org,
leitao@...ian.org,
usamaarif642@...il.com,
sathyanarayanan.kuppuswamy@...ux.intel.com,
ilias.apalodimas@...aro.org
Subject: [PATCH 3/6] libstub,tpm: provide indication of failure when getting event log
If get_event_log fails, at least provide an indicator of this failure
to assist debugging later failures that attempt to interact with it.
Signed-off-by: Gregory Price <gourry@...rry.net>
---
drivers/firmware/efi/libstub/tpm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/firmware/efi/libstub/tpm.c b/drivers/firmware/efi/libstub/tpm.c
index df3182f2e63a..192914e04e0f 100644
--- a/drivers/firmware/efi/libstub/tpm.c
+++ b/drivers/firmware/efi/libstub/tpm.c
@@ -185,8 +185,10 @@ void efi_retrieve_eventlog(void)
get_efi_config_table(EFI_CC_FINAL_EVENTS_TABLE_GUID);
}
- if (status != EFI_SUCCESS || !log_location)
+ if (status != EFI_SUCCESS || !log_location) {
+ efi_err("TPM unable to provide Event Log\n");
return;
+ }
efi_retrieve_tcg2_eventlog(version, log_location, log_last_entry,
truncated, final_events_table);
--
2.43.0
Powered by blists - more mailing lists