minor [PATCH] for fat 2.3.25

Andrzej Krzysztofowicz (ankry@green.mif.pg.gda.pl)
Tue, 2 Nov 1999 15:23:40 +0100 (CET)


Hi,
I enclose a patch that fixes oops problem which happens sometimes while
trying to mount as fat-ish fs random data (eg. a floppy with dd'ed kernel
image). Kenel 2.3.2[45].

fat_brelse can't be used here as MSDOS_SB(sb)->cvf_format == NULL at this
point (it is set properly later...)

Regards
Andrzej

***********************************************************************
diff -u --recursive 2.3.25-1/fs/fat/inode.c linux/fs/fat/inode.c
--- 2.3.25-1/fs/fat/inode.c Mon Aug 30 19:23:14 1999
+++ linux/fs/fat/inode.c Sat Oct 30 00:24:27 1999
@@ -530,7 +530,7 @@
}
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);
+ brelse(bh);
goto out_invalid;
}
fsinfo = (struct fat_boot_fsinfo *)
************************************************************************

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

- 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/