From 37779b49995d00fc5aa64cb75b3ebc68b8a0014a Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 12 May 2025 15:25:27 -0400 Subject: [PATCH] tpm2: In CheckLockedOut replace TPM_RC_RETRY with TPM_RC_SUCCESS In CheckLockedOut replace the return code of TPM_RC_RETRY with TPM_RC_SUCCESS since it does not seem to be necessary to run the TPM2 command again but the TPM2 can continue executing the current command. If NVRAM wasn't available then the code in CheckLockedOut would return with an error already. Signed-off-by: Stefan Berger --- src/tpm2/SessionProcess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpm2/SessionProcess.c b/src/tpm2/SessionProcess.c index d48ea80e..a0693303 100644 --- a/src/tpm2/SessionProcess.c +++ b/src/tpm2/SessionProcess.c @@ -1334,7 +1334,7 @@ static TPM_RC CheckLockedOut( g_daUsed = TRUE; gp.orderlyState = SU_DA_USED_VALUE; NV_SYNC_PERSISTENT(orderlyState); - return TPM_RC_RETRY; + return TPM_RC_SUCCESS; // libtpms changed: was TPM_RC_RETRY; } #endif }