From: Tom Rini Date: Thu, 1 Oct 2020 10:09:47 -0400 Subject: [PATCH 1/3] net: tftp: Fix tftp_prev_block counter update In-Reply-To: <20200825022637.93123-2-ley.foon.tan@intel.com> References: <20200825022637.93123-1-ley.foon.tan@intel.com> <20200825022637.93123-2-ley.foon.tan@intel.com> Message-ID: <20201001140947.GK14816@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 25, 2020 at 10:26:35AM +0800, Ley Foon Tan wrote: > Fixes missing update to tftp_prev_block counter before increase > tftp_cur_block counter when do the tftpput operation. > > tftp_prev_block counter is used in update_block_number() function to > check whether block number (sequence number) is rollover. This bug > cause the tftpput command fail to upload a large file when block > number is greater than 16-bit (0xFFFF). > > Signed-off-by: Ley Foon Tan > Reviewed-By: Ramon Fried Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: