aboutsummaryrefslogtreecommitdiff
path: root/flattree.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-11-14 15:24:49 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-11-14 15:24:49 +1100
commita3143fafbf83868748c99aa14daf274de5549826 (patch)
tree20ba91881fe53edc26d96ae5b80d0528a924b8e4 /flattree.c
parent403cc79f06a135aee00f35cea975f068a72dbd92 (diff)
downloaddtc-a3143fafbf83868748c99aa14daf274de5549826.zip
dtc-a3143fafbf83868748c99aa14daf274de5549826.tar.gz
dtc-a3143fafbf83868748c99aa14daf274de5549826.tar.bz2
Revert "annotations: add positions"
This reverts commit baa1d2cf7894a32bf2f640ef40ebce561b2df565. Turns out this introduced memory badness. valgrind picks it up on x86, but it straight out SEGVs on x86. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'flattree.c')
-rw-r--r--flattree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flattree.c b/flattree.c
index acf04c3..851ea87 100644
--- a/flattree.c
+++ b/flattree.c
@@ -692,7 +692,7 @@ static struct property *flat_read_property(struct inbuf *dtbuf,
val = flat_read_data(dtbuf, proplen);
- return build_property(name, val, NULL);
+ return build_property(name, val);
}
@@ -750,7 +750,7 @@ static struct node *unflatten_tree(struct inbuf *dtbuf,
char *flatname;
uint32_t val;
- node = build_node(NULL, NULL, NULL);
+ node = build_node(NULL, NULL);
flatname = flat_read_string(dtbuf);