diff options
author | Benjamin Weisenbeck <bweisenb@us.ibm.com> | 2013-07-26 12:32:21 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-08-08 10:17:00 -0500 |
commit | aa9eff9dfd7ddbb969ae92c244988348bdc2718b (patch) | |
tree | b6beeb36144eeb126b0f87f60105e052654b7c5f /src/usr/diag/prdf | |
parent | 1dc1f082f84ddc7c39d1cf652829da7889ee531d (diff) | |
download | talos-hostboot-aa9eff9dfd7ddbb969ae92c244988348bdc2718b.tar.gz talos-hostboot-aa9eff9dfd7ddbb969ae92c244988348bdc2718b.zip |
PRD: Add checks for NULL around mcs and membuf targets
Change-Id: I5f6382b7ef9eddd96bc036c752dcdfc2c6d41a36
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5594
Tested-by: Jenkins Server
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Reviewed-by: Christopher T. Phan <cphan@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5728
Diffstat (limited to 'src/usr/diag/prdf')
-rw-r--r-- | src/usr/diag/prdf/common/plat/pegasus/prdfLaneRepair.C | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/diag/prdf/common/plat/pegasus/prdfLaneRepair.C b/src/usr/diag/prdf/common/plat/pegasus/prdfLaneRepair.C index 85ea22aa2..779b8053c 100644 --- a/src/usr/diag/prdf/common/plat/pegasus/prdfLaneRepair.C +++ b/src/usr/diag/prdf/common/plat/pegasus/prdfLaneRepair.C @@ -327,14 +327,16 @@ int32_t cleanupSecondaryFirBits( ExtensibleChip * i_chip, i_busPos); mcsChip = ( ExtensibleChip * )systemPtr->GetChip( mcsTgt ); mbChip = getMcsDataBundle( mcsChip )->getMembChip(); - mbTgt = mbChip->GetChipHandle(); + if (mbChip) + mbTgt = mbChip->GetChipHandle(); } else if ( i_busType == TYPE_MEMBUF ) { mbTgt = i_chip->GetChipHandle(); mcsChip = getMembufDataBundle( i_chip )->getMcsChip(); - mcsTgt = mcsChip->GetChipHandle(); + if (mcsChip) + mcsTgt = mcsChip->GetChipHandle(); mbChip = i_chip; } |