]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix wrong assert in ext4_mb_normalize_request()
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 27 May 2014 16:48:56 +0000 (12:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 May 2014 16:48:56 +0000 (12:48 -0400)
commit4e1ca652f91226f59b85aab5b20be04a8bb8426c
treecf7c70769b4d7d885db5701ac3729741f471b70b
parentce734add9a545cbe23584b20b6bb8ac3c2f53b34
ext4: fix wrong assert in ext4_mb_normalize_request()

The variable "size" is expressed as number of blocks and not as
number of clusters, this could trigger a kernel panic when using
ext4 with the size of a cluster different from the size of a block.

Cc: stable@vger.kernel.org
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c