summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-05-05 07:10:03 +0200
committerStefan Roese <sr@denx.de>2007-05-05 07:10:03 +0200
commit9fab1181d0410dd274c58b76352c60328778e69d (patch)
tree572778eab4cebab6f5bb0133e725b2b603d7b153 /common/cmd_bootm.c
parenta79886590593ba1d667c840caa4940c61639f18f (diff)
parent9877d7dcd1eebe61aa5d8b8ffe9c048ea426e6f6 (diff)
downloadu-boot-imx-9fab1181d0410dd274c58b76352c60328778e69d.zip
u-boot-imx-9fab1181d0410dd274c58b76352c60328778e69d.tar.gz
u-boot-imx-9fab1181d0410dd274c58b76352c60328778e69d.tar.bz2
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 32c29e5..a6499e8 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -779,9 +779,8 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
checksum = ntohl(hdr->ih_dcrc);
addr = (ulong)((uchar *)(hdr) + sizeof(image_header_t));
- len = ntohl(hdr->ih_size);
- if(checksum != crc32(0, (uchar *)addr, len)) {
+ if(checksum != crc32(0, (uchar *)addr, ntohl(hdr->ih_size))) {
printf("ERROR: Flat Device Tree checksum is invalid\n");
return;
}