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>
This commit is contained in:
@@ -626,7 +626,7 @@ OpalUtilRevert(
|
|||||||
// Try to revert with admin1
|
// Try to revert with admin1
|
||||||
//
|
//
|
||||||
Ret = OpalAdminRevert(Session, KeepUserData, &MethodStatus);
|
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.
|
// Device ends the session on successful revert, so only call OpalEndSession when fail.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user