On Tue, Aug 25, 2020 at 10:26:36AM +0800, Ley Foon Tan wrote: > tftp_cur_block start with 1 for first block, but tftp_cur_block counter is > start with zero when block number is rollover. The existing code > "tftp_cur_block - 1" will cause the block number become -1 in store_block() > when tftp_cur_block is 0 when tftp_cur_block is rollover. > > The fix pass in tftp_cur_block to store_block() and minus the > tftp_block_size when do the offset calculation. > > Signed-off-by: Ley Foon Tan <ley.foon....@intel.com> > Reviewed-By: Ramon Fried <rfried....@gmail.com>
Applied to u-boot/next, thanks! -- Tom
signature.asc
Description: PGP signature