summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c')
-rw-r--r--SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c b/SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c
index 29ec7b0621..a9d3105456 100644
--- a/SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c
+++ b/SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c
@@ -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
//