aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/microchip
diff options
context:
space:
mode:
authorRicardo Salveti2021-09-26 21:36:04 +0300
committerTom Rini2021-10-12 16:49:21 -0400
commit41130eb8937e43b2307fb67ebb60f0190fc01438 (patch)
treeb5e6473d4c10c563ef3659b55968311a8737723c /drivers/clk/microchip
parent0892a7e5fa5ce38f58e0e6636ae56c6f60c080e0 (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