The patch titled ext2: prevent div-by-zero on corrupted fs has been added to the -mm tree. Its filename is ext2-prevent-div-by-zero-on-corrupted-fs.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: ext2: prevent div-by-zero on corrupted fs From: <Andries.Brouwer@xxxxxx> Mounting an ext2 filesystem with zero s_inodes_per_group will cause a divide error. Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/ext2/super.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN fs/ext2/super.c~ext2-prevent-div-by-zero-on-corrupted-fs fs/ext2/super.c --- a/fs/ext2/super.c~ext2-prevent-div-by-zero-on-corrupted-fs +++ a/fs/ext2/super.c @@ -781,7 +781,7 @@ static int ext2_fill_super(struct super_ if (EXT2_INODE_SIZE(sb) == 0) goto cantfind_ext2; sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb); - if (sbi->s_inodes_per_block == 0) + if (sbi->s_inodes_per_block == 0 || sbi->s_inodes_per_group == 0) goto cantfind_ext2; sbi->s_itb_per_group = sbi->s_inodes_per_group / sbi->s_inodes_per_block; _ Patches currently in -mm which might be from Andries.Brouwer@xxxxxx are fix-for-minix-crash.patch ext2-prevent-div-by-zero-on-corrupted-fs.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html