linux/fs/ext4
Andries E. Brouwer b47b6f38e5 ext3, ext4: avoid divide by zero
As it turns out, the kernel divides by EXT3_INODES_PER_GROUP(s) when
mounting an ext3 filesystem.  If that number is zero, a crash follows.
Below a patch.

This crash was reported by Joeri de Ruiter, Carst Tankink and Pim Vullers.

Cc: <linux-ext4@vger.kernel.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-12-17 19:28:16 -08:00
..
acl.c
acl.h
balloc.c Revert "ext2/ext3/ext4: add block bitmap validation" 2007-11-13 08:09:11 -08:00
bitmap.c
dir.c
ext4_jbd2.c
extents.c
file.c
fsync.c ext4: sparse fixes 2007-10-17 18:50:03 -04:00
group.h
hash.c
ialloc.c
inode.c ext4: sparse fixes 2007-10-17 18:50:03 -04:00
ioctl.c Forbid user to change file flags on quota files 2007-11-14 18:45:38 -08:00
Makefile
namei.c
namei.h
resize.c ext4: lighten up resize transaction requirements 2007-10-17 18:50:04 -04:00
super.c ext3, ext4: avoid divide by zero 2007-12-17 19:28:16 -08:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: sparse fixes 2007-10-17 18:50:03 -04:00
xattr.h