[Crosstoolchain-logs] [device-tree-compiler] 18/357: Add a couple of missing cpu_to_be32() writing the version numbers out.

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:43 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 dffc2a8972640dc2d9c9cdf7c83132d93437f6af
Author: David Gibson <dgibson at sneetch.(none)>
Date:   Thu Aug 25 14:47:20 2005 +1000

    Add a couple of missing cpu_to_be32() writing the version numbers out.
---
 flattree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/flattree.c b/flattree.c
index 901d1e2..9d84b19 100644
--- a/flattree.c
+++ b/flattree.c
@@ -298,8 +298,8 @@ static void make_bph(struct boot_param_header *bph,
 	memset(bph, 0xff, sizeof(*bph));
 
 	bph->magic = cpu_to_be32(OF_DT_HEADER);
-	bph->version = vi->version;
-	bph->last_comp_version = vi->last_comp_version;
+	bph->version = cpu_to_be32(vi->version);
+	bph->last_comp_version = cpu_to_be32(vi->last_comp_version);
 
 	/* Reserve map should be doubleword aligned */
 	reserve_off = ALIGN(vi->hdr_size, 8);

-- 
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