From: Theodore Ts'o Date: Mon, 23 Nov 2009 12:24:46 +0000 (-0500) Subject: ext4: avoid divide by zero when trying to mount a corrupted file system X-Git-Tag: v2.6.33-rc1~330^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=503358ae01b70ce6909d19dd01287093f6b6271c;p=pandora-kernel.git ext4: avoid divide by zero when trying to mount a corrupted file system If s_log_groups_per_flex is greater than 31, then groups_per_flex will will overflow and cause a divide by zero error. This can cause kernel BUG if such a file system is mounted. Thanks to Nageswara R Sastry for analyzing the failure and providing an initial patch. http://bugzilla.kernel.org/show_bug.cgi?id=14287 Signed-off-by: "Theodore Ts'o" Cc: stable@kernel.org --- Reading git-diff-tree failed