[PATCH 1/3] net: tftp: Fix tftp_prev_block counter update

Tom Rini trini at konsulko.com
Thu Oct 1 16:09:47 CEST 2020


On Tue, Aug 25, 2020 at 10:26:35AM +0800, Ley Foon Tan wrote:

> Fixes missing update to tftp_prev_block counter before increase
> tftp_cur_block counter when do the tftpput operation.
> 
> tftp_prev_block counter is used in update_block_number() function to
> check whether block number (sequence number) is rollover. This bug
> cause the tftpput command fail to upload a large file when block
> number is greater than 16-bit (0xFFFF).
> 
> Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
> Reviewed-By: Ramon Fried <rfried.dev at gmail.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201001/cf2da63f/attachment.sig>


More information about the U-Boot mailing list