diff options
| author | Sean Anderson <sean.anderson@seco.com> | 2021-05-27 12:02:34 -0400 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2021-06-01 16:48:54 -0400 |
| commit | 89be8e31ccd1c53b010385ed0807eb00f0eec06a (patch) | |
| tree | 376f13956ee8596593a158d5d65c07b3a6daf1af /scripts/const_structs.checkpatch | |
| parent | d8729a114e1e98806cffb87d2dca895f99a0170a (diff) | |
| download | u-boot-89be8e31ccd1c53b010385ed0807eb00f0eec06a.tar.gz u-boot-89be8e31ccd1c53b010385ed0807eb00f0eec06a.tar.xz u-boot-89be8e31ccd1c53b010385ed0807eb00f0eec06a.zip | |
fastboot: Fix overflow when calculating chunk size
If a chunk was larger than 4GiB, then chunk_data_sz would overflow and
blkcnt would not be calculated correctly. Upgrade it to a u64 and cast
its multiplicands as well. Also fix bytes_written while we're at it.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
