Messages in this thread Patch in this message | | | Date | Sun, 3 Jan 1999 22:54:20 +0100 (MET) | From | Andries.Brouwer@cwi ... | Subject | fat/inode.c patch |
| |
I see that pre4 is out. Lots of good things, but the fat/inode.c patch was applied incorrectly, probably a paste error. Here it is again, against pre4.
--- ../../../../linux-2.2.0pre4/linux/fs/fat/inode.c Sun Jan 3 22:42:34 1999 +++ ./inode.c Sun Jan 3 22:43:04 1999 @@ -364,8 +364,8 @@ MSDOS_SB(sb)->root_cluster = CF_LE_L(b->root_cluster); MSDOS_SB(sb)->fsinfo_offset = CF_LE_W(b->info_sector) * logical_sector_size + 0x1e0; - if (MSDOS_SB(sb)->fsinfo_offset + sizeof(MSDOS_SB(sb)->fsinfo_offset) > sb->s_blocksize) { - printk("fat_read_super: Bad fsinfo_offset 0x%x\n", MSDOS_SB(sb)->fsinfo_offset); + if (MSDOS_SB(sb)->fsinfo_offset + sizeof(struct fat_boot_fsinfo) > sb->s_blocksize) { + printk("fat_read_super: Bad fsinfo_offset\n"); fat_brelse(sb, bh); goto out_invalid; }
Andries
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |