commit | 5babe56f78e37cee71131d7c629c58c8efa0b7e5 | [log] [tgz] |
---|---|---|
author | Ley Foon Tan <ley.foon.tan@intel.com> | Tue Aug 25 10:26:37 2020 +0800 |
committer | Tom Rini <trini@konsulko.com> | Wed Sep 30 16:48:18 2020 -0400 |
tree | 53db6ad1efad50666b6e94ce4b4ec9516be0e3e0 | |
parent | 81bb32485fb54b97abe6182a47916a2decd4f4f4 [diff] |
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>