]> git.sur5r.net Git - u-boot/commit
fat: fix crash with big sector size
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Mon, 8 Aug 2011 09:38:33 +0000 (09:38 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 1 Oct 2011 19:50:39 +0000 (21:50 +0200)
commitac4977719e157bcb3c45c70d9dd781164727530d
treecd0e324be681e5de909b1d8c82a5995cde6c6b26
parent1e02c20ac925fbc527b8579e42f0a6bd610a0760
fat: fix crash with big sector size

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@mvista.com>
fs/fat/fat.c
include/fat.h