summaryrefslogtreecommitdiff
path: root/fs/dlm/debug_fs.c
diff options
context:
space:
mode:
authorAndries E. Brouwer <Andries.Brouwer@cwi.nl>2007-12-18 03:19:55 +0300
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-12-18 06:28:16 +0300
commitb47b6f38e5202c924bfe7632dce5dda4e3d40731 (patch)
treeb9dfeb426adc7125ac7828d5b646d893163314c6 /fs/dlm/debug_fs.c
parent9e2de407bec98fb07040f658f55fb71ba1b594f5 (diff)
downloadlinux-b47b6f38e5202c924bfe7632dce5dda4e3d40731.tar.xz
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>
Diffstat (limited to 'fs/dlm/debug_fs.c')
0 files changed, 0 insertions, 0 deletions