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

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

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

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