Commit 1bcd07fc authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix fat handling of some weirder variants

parent a76e4228
...@@ -939,7 +939,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, ...@@ -939,7 +939,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
error = first; error = first;
goto out_fail; goto out_fail;
} }
if (FAT_FIRST_ENT(sb, media) != first) { if (FAT_FIRST_ENT(sb, media) != first
&& (media != 0xf8 || FAT_FIRST_ENT(sb, 0xfe) != first)) {
if (!silent) { if (!silent) {
printk(KERN_ERR "FAT: invalid first entry of FAT " printk(KERN_ERR "FAT: invalid first entry of FAT "
"(0x%x != 0x%x)\n", "(0x%x != 0x%x)\n",
......
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