summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/base/trustedbootMsg.H
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2016-09-21 14:15:26 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-10-31 07:58:51 -0400
commita0575efc0dae3b41ee95e55d5a5e7acb12418c90 (patch)
treeb2180423aa48bf15ce4e07b2df6ce4292b7f7a60 /src/usr/secureboot/trusted/base/trustedbootMsg.H
parent777071e01eda3765370cfc3221d459f97026e233 (diff)
downloadtalos-hostboot-a0575efc0dae3b41ee95e55d5a5e7acb12418c90.tar.gz
talos-hostboot-a0575efc0dae3b41ee95e55d5a5e7acb12418c90.zip
Add a TPM separator during host start_payload
Change-Id: I11736ebe4b44e54584febc05e1dea50dd5304fa4 RTC: 155301 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30996 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/trusted/base/trustedbootMsg.H')
-rw-r--r--src/usr/secureboot/trusted/base/trustedbootMsg.H13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/usr/secureboot/trusted/base/trustedbootMsg.H b/src/usr/secureboot/trusted/base/trustedbootMsg.H
index 4fb4edeaf..79edde42e 100644
--- a/src/usr/secureboot/trusted/base/trustedbootMsg.H
+++ b/src/usr/secureboot/trusted/base/trustedbootMsg.H
@@ -52,6 +52,7 @@ namespace TRUSTEDBOOT
{
MSG_TYPE_NOOP,
MSG_TYPE_PCREXTEND,
+ MSG_TYPE_SEPARATOR,
MSG_TYPE_SHUTDOWN,
MSG_TYPE_LAST = MSG_TYPE_SHUTDOWN
};
@@ -94,9 +95,11 @@ namespace TRUSTEDBOOT
/// @brief Message dtor
virtual ~Message(void)
{
- // Do NOT delete[] iv_data here. For synchronous messages
- // the caller wants this data and expects to delete[] it
- // itself. For async messages it is deleted in the dtor
+ if (NULL != iv_data)
+ {
+ delete[] iv_data;
+ iv_data = NULL;
+ }
// Do NOT delete iv_errl here. For synchronous messages
// iv_errl is returned to the caller to commit and for
@@ -137,8 +140,6 @@ namespace TRUSTEDBOOT
/// @brief Dtor
virtual ~SyncMessage(void)
{
- delete[] iv_data;
- iv_data = NULL;
}
/// @brief complete the processing when a response arrives
@@ -161,8 +162,6 @@ namespace TRUSTEDBOOT
/// @brief Dtor
virtual ~AsyncMessage(void)
{
- delete[] iv_data;
- iv_data = NULL;
}
/// @brief complete the processing when a response arrives
OpenPOWER on IntegriCloud