--- zzzz-none-000/linux-4.4.60/fs/squashfs/fragment.c 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/fs/squashfs/fragment.c 2019-07-03 09:21:34.000000000 +0000 @@ -51,7 +51,7 @@ struct squashfs_sb_info *msblk = sb->s_fs_info; int block = SQUASHFS_FRAGMENT_INDEX(fragment); int offset = SQUASHFS_FRAGMENT_INDEX_OFFSET(fragment); - u64 start_block = le64_to_cpu(msblk->fragment_index[block]); + u64 start_block = squash_le64_to_cpu(msblk->fragment_index[block]); struct squashfs_fragment_entry fragment_entry; int size; @@ -60,8 +60,8 @@ if (size < 0) return size; - *fragment_block = le64_to_cpu(fragment_entry.start_block); - size = le32_to_cpu(fragment_entry.size); + *fragment_block = squash_le64_to_cpu(fragment_entry.start_block); + size = squash_le32_to_cpu(fragment_entry.size); return size; } @@ -90,7 +90,7 @@ * table[0] points to the first fragment table metadata block, this * should be less than fragment_table_start */ - if (!IS_ERR(table) && le64_to_cpu(table[0]) >= fragment_table_start) { + if (!IS_ERR(table) && squash_le64_to_cpu(table[0]) >= fragment_table_start) { kfree(table); return ERR_PTR(-EINVAL); }