ACPICA: Apply ACPI_NONSTRING

Add ACPI_NONSTRING for destination char arrays without a terminating NUL
character.

This is a follow-up to commit 2b82118845 ("ACPICA: Apply ACPI_NONSTRING")
where a few more destination arrays were missed.

Link: https://github.com/acpica/acpica/commit/f359e5ed
Fixes: 2b82118845 ("ACPICA: Apply ACPI_NONSTRING")
Signed-off-by: Ahmed Salem <x0rw3ll@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Ahmed Salem 2025-09-12 21:55:35 +02:00 committed by Rafael J. Wysocki
parent feb8ae81b2
commit 12fd607554
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ struct acpi_table_header {
char oem_id[ACPI_OEM_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM identification */ char oem_id[ACPI_OEM_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM identification */
char oem_table_id[ACPI_OEM_TABLE_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM table identification */ char oem_table_id[ACPI_OEM_TABLE_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM table identification */
u32 oem_revision; /* OEM revision number */ u32 oem_revision; /* OEM revision number */
char asl_compiler_id[ACPI_NAMESEG_SIZE]; /* ASCII ASL compiler vendor ID */ char asl_compiler_id[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; /* ASCII ASL compiler vendor ID */
u32 asl_compiler_revision; /* ASL compiler version */ u32 asl_compiler_revision; /* ASL compiler version */
}; };

View File

@ -995,7 +995,7 @@ static acpi_status osl_list_customized_tables(char *directory)
{ {
void *table_dir; void *table_dir;
u32 instance; u32 instance;
char temp_name[ACPI_NAMESEG_SIZE]; char temp_name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING;
char *filename; char *filename;
acpi_status status = AE_OK; acpi_status status = AE_OK;
@ -1312,7 +1312,7 @@ osl_get_customized_table(char *pathname,
{ {
void *table_dir; void *table_dir;
u32 current_instance = 0; u32 current_instance = 0;
char temp_name[ACPI_NAMESEG_SIZE]; char temp_name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING;
char table_filename[PATH_MAX]; char table_filename[PATH_MAX];
char *filename; char *filename;
acpi_status status; acpi_status status;