summaryrefslogtreecommitdiff
path: root/srcpos.h
diff options
context:
space:
mode:
author David Gibson <david@gibson.dropbear.id.au> 2013-12-31 22:34:05 +1100
committer David Gibson <david@gibson.dropbear.id.au> 2013-12-31 22:34:05 +1100
commita7ecdb4e751051a31ae8b40333d85c578ce8ea8d (patch)
treed1e996324f4755e68b2a9ec91e6b6eaf4ce0ad3b /srcpos.h
parentedb10bcf1cd5be7251fc87ed5fc622f620008ceb (diff)
Fix valgrind errors in sw_tree1
The sw_tree1 testcase has accumulated some valgrind errors, at least in the "realloc" mode. * It had both a realloc_fdt() and explicit xmalloc() for the initial allocation which was redundant and caused errors. * It doesn't make sense to call fdt_resize() until after we've created the initial stub tree * Alignment gaps inserted into the tree contain uninitialized data, which trips an error when we write it out. We could zero the buffer, but that would make it easier to miss real bugs, so we add suppressions for the valgrind warnings instead. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'srcpos.h')
0 files changed, 0 insertions, 0 deletions