summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/security/tpm/tspi/crtm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/security/tpm/tspi/crtm.c b/src/security/tpm/tspi/crtm.c
index 1559838430..b64bbbf6c6 100644
--- a/src/security/tpm/tspi/crtm.c
+++ b/src/security/tpm/tspi/crtm.c
@@ -178,6 +178,10 @@ int tspi_measure_cache_to_pcr(void)
enum vb2_hash_algorithm hash_alg;
struct tcpa_table *tclt = tcpa_log_init();
+ /* This means the table is empty. */
+ if (!tcpa_log_available())
+ return VB2_SUCCESS;
+
if (!tclt) {
printk(BIOS_WARNING, "TCPA: Log non-existent!\n");
return VB2_ERROR_UNKNOWN;