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

fs/fat: Fix unaligned __u16 reads for FAT12 access


Doing unaligned reads is not supported on all architectures, use
byte sized reads of the little endian buffer.
Rename off16 to off8, as it reflects the buffer offset in byte
granularity (offset is in entry, i.e. 12 bit, granularity).
Fix a regression introduced in 8d48c92b

Reported-by: default avatarOleksandr Tymoshenko <gonzo@bluezbox.com>
Signed-off-by: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
Tested-by: default avatarOleksandr Tymoshenko <gonzo@bluezbox.com>
parent a55bed12
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