summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2017-11-21 16:09:22 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-12-05 14:37:19 -0500
commitca52131dad3de16f44b9c9f07b5413edf1e9742a (patch)
tree56a0fcd4357510dee0fa25883dea463cfdb1433b /src/usr/secureboot/trusted
parent89f7297255af3b70c6c1f7a3845498d13eff5cfd (diff)
downloadblackbird-hostboot-ca52131dad3de16f44b9c9f07b5413edf1e9742a.tar.gz
blackbird-hostboot-ca52131dad3de16f44b9c9f07b5413edf1e9742a.zip
Handle ContainerHeader asserts more nicely with error logs
Change-Id: I2dfd02bd7c7f5b5356cd93ca967482c2d7f79ec1 RTC: 178520 RTC: 181899 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49966 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/trusted')
-rw-r--r--src/usr/secureboot/trusted/base/trustedboot_base.C8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/secureboot/trusted/base/trustedboot_base.C b/src/usr/secureboot/trusted/base/trustedboot_base.C
index 806ecd91e..b94484bb8 100644
--- a/src/usr/secureboot/trusted/base/trustedboot_base.C
+++ b/src/usr/secureboot/trusted/base/trustedboot_base.C
@@ -445,7 +445,13 @@ errlHndl_t extendBaseImage()
}
// Build a container header object from the raw header
- const SECUREBOOT::ContainerHeader hbbContainerHeader(pHbbHeader);
+ SECUREBOOT::ContainerHeader hbbContainerHeader;
+ pError = hbbContainerHeader.setHeader(pHbbHeader);
+ if (pError)
+ {
+ TRACFCOMP(g_trac_trustedboot, ERR_MRK"extendBaseImage() setheader failed");
+ break;
+ }
const void* pHbbVa = nullptr;
if(!SECUREBOOT::enabled())
OpenPOWER on IntegriCloud