mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-12 11:43:37 +00:00
tpm2: rev164: Synchronize _TPM_Init() with upstream
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
5a7d238653
commit
dc1aac1ecf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user