hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/acpi/acpica/tbfind.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: tbfind - find table
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -56,7 +56,7 @@
5656 /* Normalize the input strings */
5757
5858 memset(&header, 0, sizeof(struct acpi_table_header));
59
- ACPI_MOVE_NAME(header.signature, signature);
59
+ ACPI_COPY_NAMESEG(header.signature, signature);
6060 strncpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE);
6161 strncpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE);
6262
....@@ -65,7 +65,7 @@
6565 (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES);
6666 for (i = 0; i < acpi_gbl_root_table_list.current_table_count; ++i) {
6767 if (memcmp(&(acpi_gbl_root_table_list.tables[i].signature),
68
- header.signature, ACPI_NAME_SIZE)) {
68
+ header.signature, ACPI_NAMESEG_SIZE)) {
6969
7070 /* Not the requested table */
7171
....@@ -94,14 +94,14 @@
9494
9595 if (!memcmp
9696 (acpi_gbl_root_table_list.tables[i].pointer->signature,
97
- header.signature, ACPI_NAME_SIZE) && (!oem_id[0]
98
- ||
99
- !memcmp
100
- (acpi_gbl_root_table_list.
101
- tables[i].pointer->
102
- oem_id,
103
- header.oem_id,
104
- ACPI_OEM_ID_SIZE))
97
+ header.signature, ACPI_NAMESEG_SIZE) && (!oem_id[0]
98
+ ||
99
+ !memcmp
100
+ (acpi_gbl_root_table_list.
101
+ tables[i].
102
+ pointer->oem_id,
103
+ header.oem_id,
104
+ ACPI_OEM_ID_SIZE))
105105 && (!oem_table_id[0]
106106 || !memcmp(acpi_gbl_root_table_list.tables[i].pointer->
107107 oem_table_id, header.oem_table_id,