Skip to content
Snippets Groups Projects
Commit 6c1a8080 authored by Stefan Brüns's avatar Stefan Brüns Committed by Tom Rini
Browse files

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: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: default avatarBenoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
parent c99d1b3c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment