Commit 06118973 authored by Wu, Josh's avatar Wu, Josh Committed by Tom Rini

fs/fat: add fat12 cluster check

Signed-off-by: default avatarJosh Wu <josh.wu@atmel.com>
parent 8b454eee
......@@ -85,7 +85,9 @@
+ (mydata->fatsize != 32 ? 0 : \
(FAT2CPU16((dent)->starthi) << 16)))
#define CHECK_CLUST(x, fatsize) ((x) <= 1 || \
(x) >= ((fatsize) != 32 ? 0xfff0 : 0xffffff0))
(x) >= ((fatsize) != 32 ? \
((fatsize) != 16 ? 0xff0 : 0xfff0) : \
0xffffff0))
typedef struct boot_sector {
__u8 ignored[3]; /* Bootstrap code */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment