From: Andries E. Brouwer Date: Tue, 18 Dec 2007 00:19:55 +0000 (-0800) Subject: ext3, ext4: avoid divide by zero X-Git-Tag: v2.6.24-rc6~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47b6f38e5202c924bfe7632dce5dda4e3d40731;p=pandora-kernel.git 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: Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed