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:
@@ -458,6 +458,11 @@ SendBlockSidCommand (
|
||||
DEBUG ((DEBUG_ERROR, "OpalBlockSid fail\n"));
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
// Record BlockSID command has been sent.
|
||||
//
|
||||
Itr->OpalDisk.SentBlockSID = TRUE;
|
||||
}
|
||||
|
||||
Itr = Itr->Next;
|
||||
@@ -2204,6 +2209,12 @@ ProcessOpalRequest (
|
||||
ProcessOpalRequestEnableFeature (Dev, L"Enable Feature:");
|
||||
}
|
||||
|
||||
//
|
||||
// Update Device ownership.
|
||||
// Later BlockSID command may block the update.
|
||||
//
|
||||
OpalDiskUpdateOwnerShip (&Dev->OpalDisk);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user