diff options
author | Andries E. Brouwer <Andries.Brouwer@cwi.nl> | 2007-12-18 01:19:55 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-18 04:28:16 +0100 |
commit | b47b6f38e5202c924bfe7632dce5dda4e3d40731 (patch) | |
tree | b9dfeb426adc7125ac7828d5b646d893163314c6 /fs/xattr.c | |
parent | fs/Kconfig: grammar fix (diff) | |
download | linux-b47b6f38e5202c924bfe7632dce5dda4e3d40731.tar.xz linux-b47b6f38e5202c924bfe7632dce5dda4e3d40731.zip |
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 '')
0 files changed, 0 insertions, 0 deletions