projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pantheon: define CONFIG_SYS_CACHELINE_SIZE
[oweals/u-boot.git]
/
tools
/
kwbimage.c
diff --git
a/tools/kwbimage.c
b/tools/kwbimage.c
index 964796e9a647666924347ca481f4c969d057784d..f327b079b2180856dce8294cccf700c2ba529b25 100644
(file)
--- a/
tools/kwbimage.c
+++ b/
tools/kwbimage.c
@@
-356,7
+356,7
@@
static int kwbimage_verify_header (unsigned char *ptr, int image_size,
calc_exthdrcsum = kwbimage_checksum8 ((void *)exthdr,
sizeof(extbhr_t) - sizeof(uint8_t), 0);
calc_exthdrcsum = kwbimage_checksum8 ((void *)exthdr,
sizeof(extbhr_t) - sizeof(uint8_t), 0);
- if (calc_
hdrcsum != m
hdr->checkSum)
+ if (calc_
exthdrcsum != ext
hdr->checkSum)
return -FDT_ERR_BADSTRUCTURE; /* exthdr csum not matched */
return 0;
return -FDT_ERR_BADSTRUCTURE; /* exthdr csum not matched */
return 0;