projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.denx.de/u-boot-fsl-qoriq
[oweals/u-boot.git]
/
fs
/
ext4
/
ext4_common.c
diff --git
a/fs/ext4/ext4_common.c
b/fs/ext4/ext4_common.c
index 621c61e5c7915529cf0bc92a7ab7d3fc31adc1c1..31952f48b90d50b3af6c119540247a486b596a99 100644
(file)
--- a/
fs/ext4/ext4_common.c
+++ b/
fs/ext4/ext4_common.c
@@
-432,6
+432,10
@@
uint16_t ext4fs_checksum_update(uint32_t i)
crc = ext2fs_crc16(crc, desc, offset);
offset += sizeof(desc->bg_checksum); /* skip checksum */
assert(offset == sizeof(*desc));
+ if (offset < fs->gdsize) {
+ crc = ext2fs_crc16(crc, (__u8 *)desc + offset,
+ fs->gdsize - offset);
+ }
}
return crc;