security/tpm/tspi: Fix preram TPM log max entries

Change-Id: I671fcd891367d3cbae4fc2d18db5a73ee8c15e8f
This commit is contained in:
Jeremy Soller
2023-02-27 12:16:12 -07:00
parent 539e3d045c
commit ac80c65b64

View File

@ -97,7 +97,7 @@ void tpm_preram_log_clear(void)
{
printk(BIOS_INFO, "TPM LOG: clearing preram log\n");
struct tpm_cb_log_table *tclt = (struct tpm_cb_log_table *)_tpm_log;
tclt->max_entries = MAX_TPM_LOG_ENTRIES;
tclt->max_entries = MAX_PRERAM_TPM_LOG_ENTRIES;
tclt->num_entries = 0;
}