diff options
author | Ricardo Salveti | 2021-09-26 21:36:04 +0300 |
---|---|---|
committer | Tom Rini | 2021-10-12 16:49:21 -0400 |
commit | 41130eb8937e43b2307fb67ebb60f0190fc01438 (patch) | |
tree | b5e6473d4c10c563ef3659b55968311a8737723c /drivers/clk/microchip | |
parent | 0892a7e5fa5ce38f58e0e6636ae56c6f60c080e0 (diff) |
fs: fat: check for buffer size before reading blocks
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@foundries.io>
Co-developed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Diffstat (limited to 'drivers/clk/microchip')
0 files changed, 0 insertions, 0 deletions