summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/pnor_common.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/pnor/pnor_common.C')
-rw-r--r--src/usr/pnor/pnor_common.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/pnor/pnor_common.C b/src/usr/pnor/pnor_common.C
index c14e41b6c..eeb2ed3fa 100644
--- a/src/usr/pnor/pnor_common.C
+++ b/src/usr/pnor/pnor_common.C
@@ -188,10 +188,22 @@ errlHndl_t PNOR::parseTOC(uint8_t* i_toc0Buffer, uint8_t* i_toc1Buffer,
ffs_hdr* l_ffs_hdr;
if (cur_TOC == 0)
{
+ if( !i_toc0Buffer )
+ {
+ TRACFCOMP(g_trac_pnor, "TOC0 buffer is NULL");
+ TOC_0_failed = true;
+ o_TOC_used = TOC_1;
+ continue;
+ }
l_ffs_hdr = (ffs_hdr*) i_toc0Buffer;
}
else if (cur_TOC == 1)
{
+ if( !i_toc1Buffer )
+ {
+ TRACFCOMP(g_trac_pnor, "TOC1 buffer is NULL");
+ continue;
+ }
l_ffs_hdr = (ffs_hdr*) i_toc1Buffer;
}
OpenPOWER on IntegriCloud