summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-05-05 08:37:54 +0200
committerStefan Roese <sr@denx.de>2007-05-05 08:37:54 +0200
commitbeb7dba2f50edf5c312168c33137598b9e5ffb99 (patch)
treec268593713dcef616cc1f23984e137713630b211 /common/cmd_bootm.c
parente3b8c78bc2489c27ae020986ef0eaca684866cef (diff)
parent9877d7dcd1eebe61aa5d8b8ffe9c048ea426e6f6 (diff)
downloadu-boot-imx-beb7dba2f50edf5c312168c33137598b9e5ffb99.zip
u-boot-imx-beb7dba2f50edf5c312168c33137598b9e5ffb99.tar.gz
u-boot-imx-beb7dba2f50edf5c312168c33137598b9e5ffb99.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;
}