[U-Boot] [PATCH 1/2] fat: fix crash with big sector size
Wolfgang Denk
wd at denx.de
Sat Oct 1 21:50:56 CEST 2011
Dear Sergei Shtylyov,
In message <201108082338.33616.sshtylyov at ru.mvista.com> you wrote:
> Apple iPod nanos have sector sizes of 2 or 4 KiB, which crashes U-Boot when it
> tries to read the boot sector into 512-byte buffer situated on stack. Make the
> FAT code indifferent to the sector size.
>
> Signed-off-by: Sergei Shtylyov <sshtylyov at mvista.com>
>
> ---
> fs/fat/fat.c | 97 +++++++++++++++++++++++++++++++++++-----------------------
> include/fat.h | 20 ++++-------
> 2 files changed, 67 insertions(+), 50 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
"If a computer can't directly address all the RAM you can use, it's
just a toy." - anonymous comp.sys.amiga posting, non-sequitir
More information about the U-Boot
mailing list