SecurityPkg/OpalPassword: Fix "Enable Feature" Menu disappear issue
https://bugzilla.tianocore.org/show_bug.cgi?id=1782 After change behavior to send BlockSid command at EndOfDxe point, check device ownership command will return un-authority error, it finally caused opal driver can't show "Enable Feature" menu. Update the code logic to send detect device ownership command before send BlockSID command. Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -357,4 +357,19 @@ OpalDiskInitialize (
|
||||
IN OPAL_DRIVER_DEVICE *Dev
|
||||
);
|
||||
|
||||
/**
|
||||
Update the device ownership
|
||||
|
||||
@param OpalDisk The Opal device.
|
||||
|
||||
@retval EFI_SUCESS Get ownership success.
|
||||
@retval EFI_ACCESS_DENIED Has send BlockSID command, can't change ownership.
|
||||
@retval EFI_INVALID_PARAMETER Not get Msid info before get ownership info.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
OpalDiskUpdateOwnerShip (
|
||||
OPAL_DISK *OpalDisk
|
||||
);
|
||||
|
||||
#endif // _HII_H_
|
||||
|
Reference in New Issue
Block a user