projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efe3965
)
ext4: fix endianness breakage in ext4_split_extent_at()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 00:32:25 +0000
(20:32 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 14:12:08 +0000
(10:12 -0400)
->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>
fs/ext4/extents.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index 1421938e6792a4f5426cbd8f4d218eea4f2192f9..1d418387ffb08aaff2710a5e2529b63821b5f7d0 100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-2882,7
+2882,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_le
32
(ee_len);
+ ex->ee_len = cpu_to_le
16
(ee_len);
ext4_ext_try_to_merge(inode, path, ex);
err = ext4_ext_dirty(handle, inode, path + depth);
goto out;