--- zzzz-none-000/linux-4.4.271/fs/squashfs/xattr.c 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/fs/squashfs/xattr.c 2023-12-20 10:37:34.000000000 +0000 @@ -65,8 +65,8 @@ if (err < 0) goto failed; - name_size = le16_to_cpu(entry.size); - handler = squashfs_xattr_handler(le16_to_cpu(entry.type)); + name_size = squash_le16_to_cpu(entry.size); + handler = squashfs_xattr_handler(squash_le16_to_cpu(entry.type)); if (handler) prefix_size = handler->list(handler, d, buffer, rest, NULL, name_size); @@ -103,7 +103,7 @@ goto failed; err = squashfs_read_metadata(sb, NULL, &start, &offset, - le32_to_cpu(val.vsize)); + squash_le32_to_cpu(val.vsize)); if (err < 0) goto failed; } @@ -141,8 +141,8 @@ if (err < 0) goto failed; - name_size = le16_to_cpu(entry.size); - type = le16_to_cpu(entry.type); + name_size = squash_le16_to_cpu(entry.size); + type = squash_le16_to_cpu(entry.type); prefix = type & SQUASHFS_XATTR_PREFIX_MASK; if (prefix == name_index && name_size == name_len) @@ -169,7 +169,7 @@ &start, &offset, sizeof(xattr_val)); if (err < 0) goto failed; - xattr = le64_to_cpu(xattr_val); + xattr = squash_le64_to_cpu(xattr_val); start = SQUASHFS_XATTR_BLK(xattr) + msblk->xattr_table; offset = SQUASHFS_XATTR_OFFSET(xattr); @@ -180,7 +180,7 @@ if (err < 0) goto failed; - vsize = le32_to_cpu(val.vsize); + vsize = squash_le32_to_cpu(val.vsize); if (buffer) { if (vsize > buffer_size) { err = -ERANGE; @@ -200,7 +200,7 @@ if (err < 0) goto failed; err = squashfs_read_metadata(sb, NULL, &start, &offset, - le32_to_cpu(val.vsize)); + squash_le32_to_cpu(val.vsize)); if (err < 0) goto failed; }