summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2016-10-15 09:39:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2016-10-15 09:39:31 -0400
commit199625098a18a5522b424dea9b122b254c022fc5 (patch)
tree1fe5bf2507fc04c391e752a7d808c509d5f99da1 /fs/ext4
parentfb4454376df9d820d95452d71dd83da6971f9338 (diff)
downloadlinux-199625098a18a5522b424dea9b122b254c022fc5.tar.gz
linux-199625098a18a5522b424dea9b122b254c022fc5.tar.bz2
linux-199625098a18a5522b424dea9b122b254c022fc5.zip
ext4: correct endianness conversion in __xattr_check_inode()
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index c15d63389957..e90c5cd04d89 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -241,7 +241,7 @@ __xattr_check_inode(struct inode *inode, struct ext4_xattr_ibody_header *header,
int error = -EFSCORRUPTED;
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: