mirror of https://github.com/acidanthera/audk.git
SecurityPkg/OpalPassword: Fixed input correct password not works issue
When user input error password exceed the max allowed times, opal device will return Invalid type error code even user input the correct password. In this case, opal driver needs to force user shutdown the system before let user input new password. Cc: Hao Wu <hao.a.wu@intel.com> 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>
This commit is contained in:
parent
54ae532cd4
commit
e4e314b1b6
|
@ -1076,6 +1076,15 @@ OpalDriverRequestPassword (
|
|||
break;
|
||||
}
|
||||
|
||||
//
|
||||
// Check whether opal device's Tries value has reach the TryLimit value, if yes, force a shutdown
|
||||
// before accept new password.
|
||||
//
|
||||
if (Ret == TcgResultFailureInvalidType) {
|
||||
Count = MAX_PASSWORD_TRY_COUNT;
|
||||
break;
|
||||
}
|
||||
|
||||
Count++;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue