SecurityPkg: TcgConfigDxe: Move TPM state string update to CallBack function
TPM state string update requires HiiHandle which may not be initialized when calling ExtractConfig. Move this logic to CallBack function. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
@@ -73,9 +73,15 @@ TcgConfigDriverEntryPoint (
|
||||
if (PrivateData == NULL) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
|
||||
PrivateData->Configuration = AllocatePool (sizeof (TCG_CONFIGURATION));
|
||||
if (PrivateData->Configuration == NULL) {
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
PrivateData->TcgProtocol = TcgProtocol;
|
||||
|
||||
|
||||
//
|
||||
// Install TCG configuration form
|
||||
//
|
||||
|
Reference in New Issue
Block a user