]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
SecurityPkg TcgStorageOpalLib: Fix wrong condition judgment.
[mirror_edk2.git] / SecurityPkg / Library / TcgStorageOpalLib / TcgStorageOpalUtil.c
index d27a9c9b5f8fe5e86e901ff4a65e9ec0d151f203..f77fbe25c1043fda255cbd9abe2cbb18fbd7b60b 100644 (file)
@@ -626,7 +626,7 @@ OpalUtilRevert(
   // Try to revert with admin1\r
   //\r
   Ret = OpalAdminRevert(Session, KeepUserData, &MethodStatus);\r
-  if (Ret != TcgResultSuccess || MethodStatus == TCG_METHOD_STATUS_CODE_SUCCESS) {\r
+  if (Ret != TcgResultSuccess || MethodStatus != TCG_METHOD_STATUS_CODE_SUCCESS) {\r
     //\r
     // Device ends the session on successful revert, so only call OpalEndSession when fail.\r
     //\r