]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
SecurityPkg/TcgStorageOpalLib: Fixed correct user password not works issue.
authorEric Dong <eric.dong@intel.com>
Mon, 17 Sep 2018 03:01:19 +0000 (11:01 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 21 Sep 2018 06:42:53 +0000 (14:42 +0800)
commita8beaf8f90aee336038c2557627a680635e1d065
treed958bb3b5b600174d4640a7b62aabd1fb118baf6
parent8c06d18bc112c7b0547641e83a508c6784317f72
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>
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c