[U-Boot] [PATCH v4 2/6] fat: write: adjust data written in each partial write

Tom Rini trini at konsulko.com
Sat Feb 8 01:05:53 CET 2020


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 <m.szyprowski at samsung.com>
> 
> 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: <https://lists.denx.de/pipermail/u-boot/attachments/20200207/b188b2cd/attachment.sig>


More information about the U-Boot mailing list