OSDN Git Service

ext4: fix endianness breakage in ext4_split_extent_at()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 00:32:25 +0000 (20:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 16:51:09 +0000 (09:51 -0700)
commit4c88a16263381c429ae0ebdc213e3d1ba5710a75
tree70851e2299efae404bd852e7b311c440f4bdd7c2
parentefc7bb83059be55362ef100c9642a091ede6f414
ext4: fix endianness breakage in ext4_split_extent_at()

commit af1584f570b19b0285e4402a0b54731495d31784 upstream.

->ee_len is __le16, so assigning cpu_to_le32() to it is going to do
Bad Things(tm) on big-endian hosts...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Ted Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c