Skip to content
Commit 89be8e31 authored by Sean Anderson's avatar Sean Anderson Committed by Tom Rini
Browse files

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: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent d8729a11
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment