.. | .. |
---|
3 | 3 | * |
---|
4 | 4 | * Module Name: tbfind - find table |
---|
5 | 5 | * |
---|
6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
---|
7 | 7 | * |
---|
8 | 8 | *****************************************************************************/ |
---|
9 | 9 | |
---|
.. | .. |
---|
56 | 56 | /* Normalize the input strings */ |
---|
57 | 57 | |
---|
58 | 58 | memset(&header, 0, sizeof(struct acpi_table_header)); |
---|
59 | | - ACPI_MOVE_NAME(header.signature, signature); |
---|
| 59 | + ACPI_COPY_NAMESEG(header.signature, signature); |
---|
60 | 60 | strncpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE); |
---|
61 | 61 | strncpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE); |
---|
62 | 62 | |
---|
.. | .. |
---|
65 | 65 | (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); |
---|
66 | 66 | for (i = 0; i < acpi_gbl_root_table_list.current_table_count; ++i) { |
---|
67 | 67 | if (memcmp(&(acpi_gbl_root_table_list.tables[i].signature), |
---|
68 | | - header.signature, ACPI_NAME_SIZE)) { |
---|
| 68 | + header.signature, ACPI_NAMESEG_SIZE)) { |
---|
69 | 69 | |
---|
70 | 70 | /* Not the requested table */ |
---|
71 | 71 | |
---|
.. | .. |
---|
94 | 94 | |
---|
95 | 95 | if (!memcmp |
---|
96 | 96 | (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)) |
---|
105 | 105 | && (!oem_table_id[0] |
---|
106 | 106 | || !memcmp(acpi_gbl_root_table_list.tables[i].pointer-> |
---|
107 | 107 | oem_table_id, header.oem_table_id, |
---|