[Crosstoolchain-logs] [device-tree-compiler] 14/357: Oops, fix stupid bug where we emitted padding before, rather than after the blob header.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 586606e35d1e72d3ee2073bca4247b340233af53
Author: David Gibson <dgibson at sneetch.(none)>
Date: Thu Jul 14 11:27:24 2005 +1000
Oops, fix stupid bug where we emitted padding before, rather than after
the blob header.
---
flattree.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flattree.c b/flattree.c
index 9b97191..a395f65 100644
--- a/flattree.c
+++ b/flattree.c
@@ -340,11 +340,12 @@ void write_dt_blob(FILE *f, struct node *tree, int version, int reservenum)
make_bph(&bph, vi, reservenum, dtbuf.len, strbuf.len);
+ fwrite(&bph, vi->hdr_size, 1, f);
+
/* Align the reserve map to an 8 byte boundary */
for (i = vi->hdr_size; i < be32_to_cpu(bph.off_mem_rsvmap); i++)
fputc(0, f);
- fwrite(&bph, vi->hdr_size, 1, f);
for (i = 0; i < reservenum+1; i++)
fwrite(&re, sizeof(re), 1, f);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list