[PATCH v2] fs: fat: check for buffer size before reading blocks

Tom Rini trini at konsulko.com
Wed Oct 13 16:16:38 CEST 2021


On Sun, Sep 26, 2021 at 09:36:04PM +0300, Oleksandr Suvorov wrote:

> From: Ricardo Salveti <ricardo at foundries.io>
> 
> This patch optimizes the commit mentioned below by avoiding running
> a set of commands which are useless in the case when
> size < mydata->sect_size and sect_count would be 0.
> 
> Fixes: 5b3ddb17ba ("fs/fat/fat.c: Do not perform zero block reads if there are no blocks left")
> 
> Signed-off-by: Ricardo Salveti <ricardo at foundries.io>
> Co-developed-by: Oleksandr Suvorov <oleksandr.suvorov at foundries.io>
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov at foundries.io>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211013/45d8483f/attachment.sig>


More information about the U-Boot mailing list