summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/errlentry.C
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2015-05-27 09:40:10 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-06-08 13:35:31 -0500
commita90cac57c0a41b8bb71e00c5e7609400b28fcfa0 (patch)
tree1301c2874117018c70e19187e2b67f48ee8e4ca2 /src/usr/errl/errlentry.C
parent45558347b0b2d50c2b4ca783464f4cca360f1378 (diff)
downloadtalos-hostboot-a90cac57c0a41b8bb71e00c5e7609400b28fcfa0.tar.gz
talos-hostboot-a90cac57c0a41b8bb71e00c5e7609400b28fcfa0.zip
update call to ph.flatten with correct length
Change-Id: I83771579d6ce52a24fbe370dbbeeb6c1687670b5 RTC: 129423 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17981 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: MATTHEW A. PLOETZ <maploetz@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/errlentry.C')
-rw-r--r--src/usr/errl/errlentry.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index 4f8eb72e4..6c5245a7e 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -1389,7 +1389,8 @@ uint64_t ErrlEntry::flatten( void * o_pBuffer,
// section count in the PH section and re-flatten it.
// count is the PH, UH, PS, and the optionals.
iv_Private.iv_sctns = 3 + l_sectionCount;
- l_cb = iv_Private.flatten( pPHBuffer, l_sizeRemaining );
+ // use ph size, since this is overwriting flattened data
+ l_cb = iv_Private.flatten( pPHBuffer, iv_Private.flatSize() );
if( 0 == l_cb )
{
TRACFCOMP( g_trac_errl, ERR_MRK"ph.flatten error");
OpenPOWER on IntegriCloud