[PATCH v2] fs: fat: check for buffer size before reading blocks
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!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 659 bytes
Desc: not available
More information about the U-Boot