summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C b/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C
index 02db438b3..d8ce9f3cb 100644
--- a/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C
+++ b/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C
@@ -729,6 +729,7 @@ fapi2::ReturnCode _fetch_and_insert_vpd_rings(
/////////////////////////////////////////////////////////////////////
// Fetch rings from the MVPD:
+ // Use i_ringBuf2 as temp buffer space
/////////////////////////////////////////////////////////////////////
l_fapiRc = getMvpdRing( i_procTarget,
MVPD_RECORD_CP00,
@@ -737,7 +738,12 @@ fapi2::ReturnCode _fetch_and_insert_vpd_rings(
i_evenOdd,
i_ring.ringId,
(uint8_t*)i_vpdRing,
- l_vpdRingSize );
+ l_vpdRingSize,
+ (uint8_t*)i_ringBuf2,
+ i_ringBufSize2);
+
+ // Reset the temp buffer that was used to gather ring data from vpd
+ memset(i_ringBuf2, 0, i_ringBufSize2);
///////////////////////////////////////////////////////////////////////
// Append VPD ring to the ring section
OpenPOWER on IntegriCloud