diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-15 09:39:31 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2018-11-20 18:05:01 +0000 |
commit | af636c8e6002231c86aef96b5d501498988f63b5 (patch) | |
tree | 353d490f3d0da05f1a39e8b7bb7e0aa4d1c0d9b6 /fs/ext4 | |
parent | ee0e34157db3b6589d105a0cbbdf61ba36ff5fce (diff) | |
download | linux-stable-af636c8e6002231c86aef96b5d501498988f63b5.tar.gz linux-stable-af636c8e6002231c86aef96b5d501498988f63b5.tar.bz2 linux-stable-af636c8e6002231c86aef96b5d501498988f63b5.zip |
ext4: correct endianness conversion in __xattr_check_inode()
commit 199625098a18a5522b424dea9b122b254c022fc5 upstream.
It should be cpu_to_le32(), not le32_to_cpu(). No change in behavior.
Found with sparse, and this was the only endianness warning in fs/ext4/.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index fbbe4fc08798..9f381dd6cedc 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -251,7 +251,7 @@ __xattr_check_inode(struct inode *inode, struct ext4_xattr_ibody_header *header, int error = -EIO; if (((void *) header >= end) || - (header->h_magic != le32_to_cpu(EXT4_XATTR_MAGIC))) + (header->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC))) goto errout; error = ext4_xattr_check_names(entry, end, entry); errout: |