summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/attrsync.C
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2014-06-11 17:05:32 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-08-12 18:41:17 -0500
commit9ba94076a3ae491c1d4bd8a2bf7b015f0af17b30 (patch)
tree393a31cbe50862710a5f84a7ad2b9cc88a7c17aa /src/usr/targeting/attrsync.C
parent0fab01cf0c87843871862448a4809e9cab7c6b2a (diff)
downloadtalos-hostboot-9ba94076a3ae491c1d4bd8a2bf7b015f0af17b30.tar.gz
talos-hostboot-9ba94076a3ae491c1d4bd8a2bf7b015f0af17b30.zip
Throttle mailbox operations to avoid out-of-memory condition
Change-Id: I18f13ec742efe196e6a2bc3714051e2489567158 RTC: 102852 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11586 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/attrsync.C')
-rw-r--r--src/usr/targeting/attrsync.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/targeting/attrsync.C b/src/usr/targeting/attrsync.C
index d6c6fd952..dbefa328f 100644
--- a/src/usr/targeting/attrsync.C
+++ b/src/usr/targeting/attrsync.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -107,7 +109,7 @@ namespace TARGETING
msg->data[1] = PAGESIZE;
// allocated storage will always be 4k
- msg->extra_data = malloc( PAGESIZE );
+ msg->extra_data = MBOX::allocate( PAGESIZE );
// copy the attributes from mem to our buffer.
memcpy( msg->extra_data,
OpenPOWER on IntegriCloud