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:37 +0300
committerTom Rini <trini@konsulko.com>2020-09-30 23:48:18 +0300
commitf6a158b996b3abee4e6315b29a488398cb3946df (patch)
tree53db6ad1efad50666b6e94ce4b4ec9516be0e3e0 /net/eth_legacy.c
parentae0bdf09ca9737d5db9453966cf4705bdd420d31 (diff)
downloadu-boot-f6a158b996b3abee4e6315b29a488398cb3946df.tar.xz
net: tftp: Fix load_block offset calculation
When load the last block, the "len" might not be a block size. This cause loading the incorrect last block data. The fix change "len" to tftp_block_size and minus one tftp_block_size for offset calculation. Use same offset calculation formula as in store_block(). 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