diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2017-07-24 13:26:11 -0500 |
---|---|---|
committer | Zane C. Shelley <zshelle@us.ibm.com> | 2017-07-27 12:19:01 -0400 |
commit | 0fd2495490d8f71ecd35aca2f85d7b33f0f26d8b (patch) | |
tree | b8cfac94ba90764d4f42fdba551d2b5e55d8ebf5 /src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C | |
parent | 4c996c92d557b46280ba5cdd93f3d19a1a02efc3 (diff) | |
download | talos-hostboot-0fd2495490d8f71ecd35aca2f85d7b33f0f26d8b.tar.gz talos-hostboot-0fd2495490d8f71ecd35aca2f85d7b33f0f26d8b.zip |
PRD: handle nullptr returned from getConnectedChild()
Change-Id: I6af579583bbe3033df99d6ba2f6e57c7e79166a9
CQ: SW396395
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43556
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43695
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C')
-rw-r--r-- | src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C b/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C index ad442f82d..ebe116431 100644 --- a/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C +++ b/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C @@ -189,11 +189,8 @@ uint32_t clearEccFirs<TYPE_MCBIST>( ExtensibleChip * i_chip ) 0xf83fffffffffffffull ); if ( SUCCESS != o_rc ) break; - for ( uint32_t p = 0; p < MAX_PORT_PER_MCBIST; p++ ) + for ( auto mcaChip : getConnected(i_chip, TYPE_MCA) ) { - ExtensibleChip * mcaChip = getConnectedChild( i_chip, TYPE_MCA, p ); - if ( nullptr == mcaChip ) continue; - // Maintenance AUEs/IAUEs will be reported as system checkstops. // Maintenance IMPEs will be reported as recoverable attentions at // all times. Maintence IUEs will be masked during Memory |