Re: [PATCH 3/3] net: tftp: Fix load_block offset calculation

2020-10-01 Thread Tom Rini
On Tue, Aug 25, 2020 at 10:26:37AM +0800, Ley Foon Tan wrote: > 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 offs

Re: [PATCH 3/3] net: tftp: Fix load_block offset calculation

2020-09-12 Thread Ramon Fried
On Tue, Aug 25, 2020 at 5:27 AM Ley Foon Tan wrote: > > 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 calcula

[PATCH 3/3] net: tftp: Fix load_block offset calculation

2020-08-24 Thread Ley Foon Tan
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 ---