Skip to content
Commit 6bf46367 authored by Ley Foon Tan's avatar Ley Foon Tan Committed by Tom Rini
Browse files

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: default avatarLey Foon Tan <ley.foon.tan@intel.com>
Reviewed-By: default avatarRamon Fried <rfried.dev@gmail.com>
parent 387cbf09
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