diff options
author | Ley Foon Tan <ley.foon.tan@intel.com> | 2020-08-25 05:26:35 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-30 23:48:18 +0300 |
commit | 6bf46367f5f1fd159f8a497d094ecfcbb6bc3c1d (patch) | |
tree | 60347fafa5d389da3e6f0c2f59be24cd3eed255c /net/eth_legacy.c | |
parent | 387cbf096e443705fa66776027273ed257ec6ca3 (diff) | |
download | u-boot-6bf46367f5f1fd159f8a497d094ecfcbb6bc3c1d.tar.xz |
net: tftp: Fix tftp_prev_block counter update
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@intel.com>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'net/eth_legacy.c')
0 files changed, 0 insertions, 0 deletions