Initialize some pointers which may be used without initialization
Cc: David Wei <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Guo Mang <[email protected]>
Reviewed-by: David Wei <[email protected]>
---
.../Common/Library/PlatformBootManagerLib/PlatformBootManager.c | 5 ++++-
.../Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git
a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
index c9c2cbf..5201ac0 100644
---
a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
+++
b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
@@ -524,7 +524,10 @@ ProcessTcgPp (
EFI_TCG2_PHYSICAL_PRESENCE Tcg2PpData;
EFI_PHYSICAL_PRESENCE TcgPpData;
UINTN TcgPpDataSize;
-
+
+ TcgPpData.PPRequest = TCG_PHYSICAL_PRESENCE_NO_ACTION;
+ Tcg2PpData.PPRequest = TCG2_PHYSICAL_PRESENCE_NO_ACTION;
+
//
// Initialize physical presence variable.
//
diff --git
a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
index 7d003e4..17c09ec 100644
---
a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
+++
b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
@@ -1,7 +1,7 @@
/** @file
Do platform specific PEI stage initializations.
- Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD
License
@@ -90,6 +90,7 @@ TpmPolicyInit (
if ((IsPttEnabled) && (SystemConfiguration->TPM == TPM_PTT)) {
if (SystemConfiguration->PttSuppressCommandSend == 1) {
+ Size = sizeof (gEfiTpmDeviceInstanceNoneGuid);
PcdSetPtrS (PcdTpmInstanceGuid, &Size, &gEfiTpmDeviceInstanceNoneGuid);
DEBUG ((DEBUG_ERROR, "BIOS will send no further commands to PTT.\n"));
} else {
--
2.10.1.windows.1
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel