diff options
author | Corey Swenson <cswenson@us.ibm.com> | 2017-05-02 09:26:09 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-05-10 10:05:18 -0400 |
commit | 93a1479c96c011e6c98b47f6bc0ce5b267a9b28c (patch) | |
tree | 7ab1656b2c765b243202c8ef7b9420368a5c6add /src/usr/errl/errlentry.C | |
parent | dc39590d3c177a11f240f512db1367b0d5aa4b2a (diff) | |
download | talos-hostboot-93a1479c96c011e6c98b47f6bc0ce5b267a9b28c.tar.gz talos-hostboot-93a1479c96c011e6c98b47f6bc0ce5b267a9b28c.zip |
Handle addHwCallout with null target
Change-Id: I8eb42ef8bb967d1ecd8e2f5f0c002ddeae44f578
CQ:SW386628
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39939
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl/errlentry.C')
-rw-r--r-- | src/usr/errl/errlentry.C | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C index 7c46edff4..398a1a70b 100644 --- a/src/usr/errl/errlentry.C +++ b/src/usr/errl/errlentry.C @@ -422,7 +422,14 @@ void ErrlEntry::addHwCallout(const TARGETING::Target *i_target, const HWAS::DeconfigEnum i_deconfigState, const HWAS::GARD_ErrorType i_gardErrorType) { - + if (i_target == nullptr) + { + TRACFCOMP(g_trac_errl, ENTER_MRK + "addHwCallout called with NULL target"); + addProcedureCallout( HWAS::EPUB_PRC_HB_CODE, + HWAS::SRCI_PRIORITY_HIGH); + return; + } if (i_target == TARGETING::MASTER_PROCESSOR_CHIP_TARGET_SENTINEL) { |