diff options
author | qctecmdr <qctecmdr@localhost> | 2019-08-06 20:26:25 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-08-06 20:26:25 -0700 |
commit | 6a371dbc8df4d3c91e5c5afd8576fa716ebc7092 (patch) | |
tree | 889c79b4ce11434bcc990d21ecb3f2d00879e3a8 | |
parent | 880692118fc1efdd1802c4c51a69ac36e1217aa4 (diff) | |
parent | 2503b6d7fbfdecef90b3c22b23c03a2420d4660b (diff) |
Merge "avb: Fix antirollback check for non HLOS images"
-rw-r--r-- | QcomModulePkg/Library/avb/libavb/avb_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/QcomModulePkg/Library/avb/libavb/avb_util.c b/QcomModulePkg/Library/avb/libavb/avb_util.c index b419f1b64a..b253e2016e 100644 --- a/QcomModulePkg/Library/avb/libavb/avb_util.c +++ b/QcomModulePkg/Library/avb/libavb/avb_util.c @@ -723,12 +723,14 @@ EFI_STATUS UpdateRollbackSyscall () Status = EFI_FAILURE; return Status; } - if (SysCallRsp->status != EFI_SUCCESS) { + if (SysCallRsp->status != 1) { Status = SysCallRsp->status; DEBUG(( EFI_D_ERROR, "TZ_UPDATE_ROLLBACK_VERSION_ID failed, " "Status = (0x%x)\r\n", Status)); return Status; } + } else { + DEBUG ((EFI_D_WARN, "UpdateRollbackSyscall: Older TZ, skipping update")); } return Status; } |