From a8beaf8f90aee336038c2557627a680635e1d065 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Mon, 17 Sep 2018 11:01:19 +0800 Subject: [PATCH] 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 Reviewed-by: Hao Wu --- SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c | 1 - 1 file changed, 1 deletion(-) 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; } //