diff options
author | Christian Geddes <crgeddes@us.ibm.com> | 2019-07-10 14:03:20 -0500 |
---|---|---|
committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2019-07-30 15:19:39 -0500 |
commit | be772a1e39083115ac77b70187a29c75fa1f12be (patch) | |
tree | 7a1dc7a146f2fccd8df68b222dc6bbf938cea971 /src | |
parent | 3ab493b6935dd508c27e9fcce2dd03826e26f14e (diff) | |
download | blackbird-hostboot-be772a1e39083115ac77b70187a29c75fa1f12be.tar.gz blackbird-hostboot-be772a1e39083115ac77b70187a29c75fa1f12be.zip |
Break out of loop if we fail to load reserved mem section
While building up the reserved memory sections if we encounter
and error trying to load one of the reserved memory sections we
should stop iterating through the sections and return the error.
Change-Id: I0652cdf9a9ce28c91092be01105938d9a3b6a0bb
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80217
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
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>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/runtime/populate_hbruntime.C | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C index 813620ddd..4093abfc5 100644 --- a/src/usr/runtime/populate_hbruntime.C +++ b/src/usr/runtime/populate_hbruntime.C @@ -914,10 +914,15 @@ errlHndl_t fill_RsvMem_hbData(uint64_t & io_start_address, l_elog->collectTrace(RUNTIME_COMP_NAME); break; } + // break out of for-loop if + if(l_elog) + { + break; + } i++; } - // exit if we hit an error + // break out of do-while if we hit an error if(l_elog) { break; |