summaryrefslogtreecommitdiff
path: root/net/eth_legacy.c
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2020-08-25 05:26:36 +0300
committerTom Rini <trini@konsulko.com>2020-09-30 23:48:18 +0300
commitae0bdf09ca9737d5db9453966cf4705bdd420d31 (patch)
treebc13aa60e831967c90338d3df3ddace904f2c335 /net/eth_legacy.c
parent6bf46367f5f1fd159f8a497d094ecfcbb6bc3c1d (diff)
downloadu-boot-ae0bdf09ca9737d5db9453966cf4705bdd420d31.tar.xz
net: tftp: Fix store_block offset calculation
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.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