[Crosstoolchain-logs] [device-tree-compiler] 45/357: dtc: fix endian issue when reading blobs
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:46 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 332c53642557a018ca9c729a4cd284c6e34b7f72
Author: Michael Neuling <mikey at neuling.org>
Date: Fri Jul 7 23:28:10 2006 +1000
dtc: fix endian issue when reading blobs
The reserve mem regions are screwy if you read a blob on x86. I'm
guessing there may be a few more of these lurking in the code.
Signed-off-by: Michael Neuling <mikey at neuling.org>
---
flattree.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/flattree.c b/flattree.c
index 56c1b38..f2dc4dc 100644
--- a/flattree.c
+++ b/flattree.c
@@ -619,6 +619,8 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
p = inb->ptr;
while (1) {
flat_read_chunk(inb, &re, sizeof(re));
+ re.address = be64_to_cpu(re.address);
+ re.size = be64_to_cpu(re.size);
if (re.size == 0)
break;
--
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