diff options
author | Brian Horton <brianh@linux.ibm.com> | 2012-05-21 09:33:14 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-05-24 11:06:14 -0500 |
commit | 99d1dab56d4e067cb4ee4b089cd3456acba6a89c (patch) | |
tree | 67ec69a7591b348af0d531f123a05de8e9be5059 /src | |
parent | fc433c65ca76105816ffe39bffc7f5d23345104b (diff) | |
download | blackbird-hostboot-99d1dab56d4e067cb4ee4b089cd3456acba6a89c.tar.gz blackbird-hostboot-99d1dab56d4e067cb4ee4b089cd3456acba6a89c.zip |
fix bug in hwas platPresenceDetect() function
on error, 2 targets would get deleted instead of just the 1 that failed.
Change-Id: Icd0376218377b6204e2d1b7e6e5b3ae0e42a3b59
RTC: 42294
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1084
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/hwas/plat/hwasPlat.C | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/usr/hwas/plat/hwasPlat.C b/src/usr/hwas/plat/hwasPlat.C index 365101081..c3d315078 100644 --- a/src/usr/hwas/plat/hwasPlat.C +++ b/src/usr/hwas/plat/hwasPlat.C @@ -115,13 +115,6 @@ errlHndl_t platPresenceDetect(TargetHandleList &io_targets) errlCommit(errl, HWAS_COMP_ID); // errl is now NULL - // chip not present -- remove from list - HWAS_DBG( "pTarget %.8X (%p) - no presence", - pTarget->getAttr<ATTR_HUID>(), pTarget); - - // erase this target, and 'increment' to next - pTarget_it = io_targets.erase(pTarget_it); - // target is not present - fall thru present = false; } @@ -129,7 +122,7 @@ errlHndl_t platPresenceDetect(TargetHandleList &io_targets) if (present == true) { HWAS_DBG( "pTarget %.8X (%p) - detected present", - pTarget->getAttr<ATTR_HUID>(), pTarget); + pTarget->getAttr<ATTR_HUID>(), pTarget); // advance to next entry in the list pTarget_it++; |