summaryrefslogtreecommitdiff
path: root/SecurityPkg/Library
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2016-04-07 21:20:01 +0800
committerHao Wu <hao.a.wu@intel.com>2016-07-04 10:36:32 +0800
commitf987576c3660393faef742c933f3f476e41f35ab (patch)
treecc8e80ef7a1674185ab7a839f7fa0730607febf7 /SecurityPkg/Library
parentfe33dae88b368c48a119c734a5d5c5b2c6eb4f2c (diff)
downloadedk2-platforms-f987576c3660393faef742c933f3f476e41f35ab.tar.xz
SecurityPkg TcgStorageOpalLib: Fix wrong condition judgment.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> (cherry picked from commit 1e6844dbe4a3475a10c6ef4019ecff8261eee1f2)
Diffstat (limited to 'SecurityPkg/Library')
-rw-r--r--SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
index d27a9c9b5f..f77fbe25c1 100644
--- a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
+++ b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
@@ -626,7 +626,7 @@ OpalUtilRevert(
// Try to revert with admin1
//
Ret = OpalAdminRevert(Session, KeepUserData, &MethodStatus);
- if (Ret != TcgResultSuccess || MethodStatus == TCG_METHOD_STATUS_CODE_SUCCESS) {
+ if (Ret != TcgResultSuccess || MethodStatus != TCG_METHOD_STATUS_CODE_SUCCESS) {
//
// Device ends the session on successful revert, so only call OpalEndSession when fail.
//