From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 7 Feb 2020 19:05:53 -0500 Subject: [U-Boot] [PATCH v4 2/6] fat: write: adjust data written in each partial write In-Reply-To: <20191202111118.12868-3-m.szyprowski@samsung.com> References: <20191202111118.12868-1-m.szyprowski@samsung.com> <20191202111118.12868-3-m.szyprowski@samsung.com> Message-ID: <20200208000553.GL13379@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 Mon, Dec 02, 2019 at 12:11:14PM +0100, Marek Szyprowski wrote: > The code for handing file overwrite incorrectly calculated the amount of > data to write when writing to the last non-cluster aligned chunk. Fix > this by ensuring that no more data than the 'filesize' is written to disk. > While touching min()-based calculations, change it to type-safe min_t() > function. > > Signed-off-by: Marek Szyprowski > > This patch finally fixes the issue revealed by the test script from the > previous patch. The correctness of the change has been also verified by > the following additional test scripts: > Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: