[U-Boot] [PATCH 2/2] fat: cannot compare bytes and sectors

Wolfgang Denk wd at denx.de
Sat Oct 1 21:51:36 CEST 2011


Dear Sergei Shtylyov,

In message <201108082339.29933.sshtylyov at ru.mvista.com> you wrote:
> The code multiples the FAT size in sectors by the sector size and then tries to
> compare that to the number of sectors in the 'getsize' variable.  While fixing
> this, also change the initial value of 'getsize' as the division of FATBUFSIZE
> by the sector size gets us FATBUFBLOCKS.
> 
> Signed-off-by: Sergei Shtylyov <sshtylyov at mvista.com>
> 
> ---
>  fs/fat/fat.c |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Why waste negative entropy on comments, when you could use the  same
entropy to create bugs instead?"                        - Steve Elias


More information about the U-Boot mailing list