--- zzzz-none-000/linux-3.10.107/fs/squashfs/fragment.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/fs/squashfs/fragment.c 2021-02-04 17:41:59.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); }