mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-11-04 09:12:31 +00:00 
			
		
		
		
	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
	
	Block a user