summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-07-02 01:31:53 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-07-02 20:07:02 -0500
commit84fb8a3cb847fddf52b78058d34afd82fc14e935 (patch)
tree078dee26f6f979b302c941903b8a5271b04608e9
parent83a4d0e79d02f4d7fed3e69c876b9a9e0ecf3c72 (diff)
downloadtalos-hostboot-84fb8a3cb847fddf52b78058d34afd82fc14e935.tar.gz
talos-hostboot-84fb8a3cb847fddf52b78058d34afd82fc14e935.zip
Incorrect memset in populate_attributes.
Change-Id: I8382bf1de886c4ec08d6e046a522854c3b6df47f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11942 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
-rw-r--r--src/usr/runtime/populate_attributes.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/runtime/populate_attributes.C b/src/usr/runtime/populate_attributes.C
index e6e9ff03b..cbce21677 100644
--- a/src/usr/runtime/populate_attributes.C
+++ b/src/usr/runtime/populate_attributes.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. */
@@ -473,7 +475,7 @@ errlHndl_t populate_node_attributes( uint64_t i_nodeNum )
}
node_data_t* node_data = reinterpret_cast<node_data_t*>(node_data_addr);
- memset( node_data, 'A', sizeof(node_data) );
+ memset( node_data, 'A', sizeof(node_data_t) );
// These variables are used by the HSVC_LOAD_ATTR macros directly
uint64_t* _num_attr = NULL; //pointer to numAttr in struct
OpenPOWER on IntegriCloud