summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Library
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2018-09-17 11:01:19 +0800
committerEric Dong <eric.dong@intel.com>2018-09-21 14:42:53 +0800
commita8beaf8f90aee336038c2557627a680635e1d065 (patch)
treed958bb3b5b600174d4640a7b62aabd1fb118baf6 /SecurityPkg/Library
parent8c06d18bc112c7b0547641e83a508c6784317f72 (diff)
downloadedk2-a8beaf8f90aee336038c2557627a680635e1d065.tar.gz
edk2-a8beaf8f90aee336038c2557627a680635e1d065.tar.bz2
edk2-a8beaf8f90aee336038c2557627a680635e1d065.zip
SecurityPkg/TcgStorageOpalLib: Fixed correct user password not works issue.
After admin password reach the TryLimit value, code logic will direct return error password result no matter which password been inputted. So even correct user password will return TryLimit error. Now update code logic to also check user password. Only when both user/admin password reach the TryLimit count, code will return exceed TryLimit error. Change-Id: I17fbd1425b77150eb933a5002a1f87a0f0032e9b Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'SecurityPkg/Library')
-rw-r--r--SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
index 3c4a8e9001..f2febc0a0c 100644
--- a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
+++ b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
@@ -763,7 +763,6 @@ OpalUtilUpdateGlobalLockingRange(
if (MethodStatus == TCG_METHOD_STATUS_CODE_AUTHORITY_LOCKED_OUT) {
DEBUG ((DEBUG_INFO, "unlock as admin failed with AUTHORITY_LOCKED_OUT\n"));
- goto done;
}
//