diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c index 5375b6dfea..771b7e604b 100644 --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c @@ -1204,6 +1204,11 @@ PeimEntryMA ( } if (EFI_ERROR (Status)) { + // MU_CHANGE_58957 + // MU_CHANGE [BEGIN] - Make sure that TPM2_Startup() can report an error. + DEBUG ((DEBUG_ERROR, "Tcg2Pei::%a - TPM failed Startup!\n", __func__)); + ASSERT_EFI_ERROR (Status); + // MU_CHANGE [END] goto Done; } } @@ -1236,6 +1241,10 @@ PeimEntryMA ( if (PcdGet8 (PcdTpm2SelfTestPolicy) == 1) { Status = Tpm2SelfTest (NO); if (EFI_ERROR (Status)) { + // MU_CHANGE_58957 + // MU_CHANGE [BEGIN] - Make sure that TPM2_Startup() can report an error. + DEBUG ((DEBUG_ERROR, "Tcg2Pei::%a - TPM failed Startup!\n", __func__)); + // MU_CHANGE [END] goto Done; } }