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

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