]> git.ipfire.org Git - people/ms/u-boot.git/commit
fs/fat: Avoid corruption of sectors following the FAT
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Fri, 16 Dec 2016 23:27:50 +0000 (00:27 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 27 Dec 2016 16:24:13 +0000 (11:24 -0500)
commit6c1a808052ba6a875df7aa450b6df4b199f3a281
tree92e632f3ade5970513c8e6058f3946196a19d98b
parentc99d1b3ccf8d6fda809bb391da9cde86157cc4c9
fs/fat: Avoid corruption of sectors following the FAT

The FAT is read/flushed in segments of 6 (FATBUFBLOCKS) disk sectors. The
last segment may be less than 6 sectors, cap the length.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
fs/fat/fat.c
fs/fat/fat_write.c