u-boot/fs
Erik Hansen 3f270f42d7 fat32 root directory handling
Fat directory handling didn't check reaching the end of the root directory. It
relied on a stop condition based on a directory entry with a name starting with
a '\0' character. This check in itself is wrong ('\0' indicates free entry, not
end_of_directory) but outside the scope of this fix. For FAT32, the end of the
rootdir is reached when the end of the cluster chain is reached. The code didn't
check this condition and started to read an incorrect cluster. This caused a
subsequent read request of a sector outside the range of the usb stick in
use. On its turn, the usb stick protested with a stall handshake.

Both FAT32 and non-FAT32 (FAT16/FAT12) end or rootdir checks have been put in.

Signed-off-by: Erik Hansen <erik@makarta.com>
2011-04-02 09:38:24 +02:00
..
cramfs Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
ext2 ext2: constify file/dir names 2010-11-28 21:58:51 +01:00
fat fat32 root directory handling 2011-04-02 09:38:24 +02:00
fdos Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
jffs2 Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
reiserfs Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
ubifs UBIFS: Fix dereferencing type-punned pointer compiler warning 2011-01-11 11:09:36 +01:00
yaffs2 Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
Makefile UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00