ext4: Fix big-endian problem in __ext4_check_blockref()
authorThiemo Nagel <thiemo.nagel@ph.tum.de>
Tue, 7 Apr 2009 22:46:47 +0000 (18:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Apr 2009 22:46:47 +0000 (18:46 -0400)
commitf73953c0656f2db9073c585c4df2884a8ecd101e
tree3771470edbc40318c553468265151f4f2e27004e
parente0724bf6e4a1f2e678d2b2aab01cae22e17862f0
ext4: Fix big-endian problem in __ext4_check_blockref()

Commit fe2c8191 introduced a regression on big-endian system, because
the checks to make sure block references in non-extent inodes are
valid failed to use le32_to_cpu().

Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Thiemo Nagel <thiemo.nagel@ph.tum.de>
Tested-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c