diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2014-03-04 14:40:41 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-03-07 12:34:32 -0600 |
commit | d1d00c8fa2188677191001be8945a0ad38ea633e (patch) | |
tree | 653dc7566df3d413f095f0ae46f1ae2c5d2bb440 /src/usr/pnor/pnorrp.C | |
parent | 0084d0655c9f11b97f8d20a5a33537aeea271958 (diff) | |
download | talos-hostboot-d1d00c8fa2188677191001be8945a0ad38ea633e.tar.gz talos-hostboot-d1d00c8fa2188677191001be8945a0ad38ea633e.zip |
Invalid PNOR section causes all future sections to be invalid.
Change-Id: I9536769846e6b7cdadb801e7eb99c43c667ff2b5
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9295
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/pnorrp.C')
-rw-r--r-- | src/usr/pnor/pnorrp.C | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/pnor/pnorrp.C b/src/usr/pnor/pnorrp.C index 86aaed140..5c526ce85 100644 --- a/src/usr/pnor/pnorrp.C +++ b/src/usr/pnor/pnorrp.C @@ -500,10 +500,10 @@ errlHndl_t PnorRP::readTOC() ffs_hb_user_t* ffsUserData = NULL; //Walk through all the entries in the table and parse the data. - ffs_entry* cur_entry = (l_ffs_hdr->entries); - for(uint32_t i=0; i<l_ffs_hdr->entry_count; i++) { + ffs_entry* cur_entry = (&l_ffs_hdr->entries[i]); + TRACUCOMP(g_trac_pnor, "PnorRP::readTOC: Entry %d, name=%s, pointer=0x%X", i, cur_entry->name, (uint64_t)cur_entry); uint32_t secId = PNOR::INVALID_SECTION; @@ -603,7 +603,6 @@ errlHndl_t PnorRP::readTOC() INITSERVICE::doShutdown( PNOR::RC_PARTITION_TABLE_INVALID); } } - cur_entry++; } //keep these traces here until PNOR is rock-solid |