tpm2: rev164: Synchronize _TPM_Init() with upstream

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2023-03-07 09:45:07 -05:00 committed by Stefan Berger
parent 5a7d238653
commit dc1aac1ecf

View File

@ -99,7 +99,7 @@ _TPM_Init(
// Initialize the NvEnvironment.
g_nvOk = NvPowerOn();
// Initialize cryptographic functions
g_inFailureMode |= (CryptInit() == FALSE); /* libtpms changed */
g_inFailureMode |= (g_nvOk == FALSE) || (CryptInit() == FALSE); // libtpms changed
if(!g_inFailureMode)
{
// Load the persistent data