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:
Zhang, Chao B
2016-02-22 13:51:53 +08:00
parent 0a38a95a35
commit 1826b5e63d
3 changed files with 40 additions and 26 deletions

View File

@@ -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
//