summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-03-04 14:40:41 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-03-07 12:34:32 -0600
commitd1d00c8fa2188677191001be8945a0ad38ea633e (patch)
tree653dc7566df3d413f095f0ae46f1ae2c5d2bb440 /src/usr/pnor
parent0084d0655c9f11b97f8d20a5a33537aeea271958 (diff)
downloadtalos-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')
-rw-r--r--src/usr/pnor/pnorrp.C5
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
OpenPOWER on IntegriCloud