--- zzzz-none-000/linux-3.10.107/fs/squashfs/xattr_id.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/fs/squashfs/xattr_id.c 2021-02-04 17:41:59.000000000 +0000 @@ -44,7 +44,7 @@ struct squashfs_sb_info *msblk = sb->s_fs_info; int block = SQUASHFS_XATTR_BLOCK(index); int offset = SQUASHFS_XATTR_BLOCK_OFFSET(index); - u64 start_block = le64_to_cpu(msblk->xattr_id_table[block]); + u64 start_block = squash_le64_to_cpu(msblk->xattr_id_table[block]); struct squashfs_xattr_id id; int err; @@ -53,9 +53,9 @@ if (err < 0) return err; - *xattr = le64_to_cpu(id.xattr); - *size = le32_to_cpu(id.size); - *count = le32_to_cpu(id.count); + *xattr = squash_le64_to_cpu(id.xattr); + *size = squash_le32_to_cpu(id.size); + *count = squash_le32_to_cpu(id.count); return 0; } @@ -73,8 +73,8 @@ if (IS_ERR(id_table)) return (__le64 *) id_table; - *xattr_table_start = le64_to_cpu(id_table->xattr_table_start); - *xattr_ids = le32_to_cpu(id_table->xattr_ids); + *xattr_table_start = squash_le64_to_cpu(id_table->xattr_table_start); + *xattr_ids = squash_le32_to_cpu(id_table->xattr_ids); kfree(id_table); /* Sanity check values */