mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
Bail out from S3Resume if TPM was not power-cycled.
Change-Id: I80027a5a935e13ba37e24978dd4b0c6040d66728 BUG=none TEST=none Review URL: http://codereview.chromium.org/3298010
This commit is contained in:
@@ -315,8 +315,18 @@ uint32_t RollbackKernelLock(void) {
|
||||
#else
|
||||
|
||||
uint32_t RollbackS3Resume(void) {
|
||||
uint32_t result;
|
||||
TlclLibInit();
|
||||
RETURN_ON_FAILURE(TlclResume());
|
||||
/* Check for INVALID_POSTINIT error, so we don't have to worry if this ends
|
||||
* up in hardware that keeps the TPM powered on during S3.
|
||||
*/
|
||||
result = TlclResume();
|
||||
if (result == TPM_E_INVALID_POSTINIT) {
|
||||
return TPM_SUCCESS;
|
||||
}
|
||||
if (result != TPM_SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
#ifdef USE_CONTINUE_SELF_TEST
|
||||
/* TODO: ContinueSelfTest() should be faster than SelfTestFull, but
|
||||
* may also not work properly in older TPM firmware. For now, do
|
||||
|
||||
@@ -1 +1 @@
|
||||
char* VbootVersion = "VBOOv=54e1e8b5";
|
||||
char* VbootVersion = "VBOOv=c4585ee1";
|
||||
|
||||
Reference in New Issue
Block a user