diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-12 20:32:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-27 09:51:09 -0700 |
commit | 4c88a16263381c429ae0ebdc213e3d1ba5710a75 (patch) | |
tree | 70851e2299efae404bd852e7b311c440f4bdd7c2 /fs/ext4 | |
parent | efc7bb83059be55362ef100c9642a091ede6f414 (diff) | |
download | kernel_samsung_crespo-4c88a16263381c429ae0ebdc213e3d1ba5710a75.zip kernel_samsung_crespo-4c88a16263381c429ae0ebdc213e3d1ba5710a75.tar.gz kernel_samsung_crespo-4c88a16263381c429ae0ebdc213e3d1ba5710a75.tar.bz2 |
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 7fc10ed..611647b 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2846,7 +2846,7 @@ static int ext4_split_extent_at(handle_t *handle, if (err) goto fix_extent_len; /* update the extent length and mark as initialized */ - ex->ee_len = cpu_to_le32(ee_len); + ex->ee_len = cpu_to_le16(ee_len); ext4_ext_try_to_merge(inode, path, ex); err = ext4_ext_dirty(handle, inode, path + depth); goto out; |