diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-15 09:39:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-10-15 09:39:31 -0400 |
commit | 199625098a18a5522b424dea9b122b254c022fc5 (patch) | |
tree | 1fe5bf2507fc04c391e752a7d808c509d5f99da1 /fs | |
parent | fb4454376df9d820d95452d71dd83da6971f9338 (diff) | |
download | blackbird-op-linux-199625098a18a5522b424dea9b122b254c022fc5.tar.gz blackbird-op-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')
-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 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: |