]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPICA: Apply ACPI_NONSTRING
authorAhmed Salem <x0rw3ll@gmail.com>
Fri, 12 Sep 2025 19:55:35 +0000 (21:55 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Sep 2025 10:20:12 +0000 (12:20 +0200)
Add ACPI_NONSTRING for destination char arrays without a terminating NUL
character.

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

Link: https://github.com/acpica/acpica/commit/f359e5ed
Fixes: 2b82118845e0 ("ACPICA: Apply ACPI_NONSTRING")
Signed-off-by: Ahmed Salem <x0rw3ll@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/actbl.h
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c

index 243097a3da636041acd968d60cad0318d773adf1..8a67d4ea6e3febe0281c2f8a14dd1ccdcecea74e 100644 (file)
@@ -73,7 +73,7 @@ struct acpi_table_header {
        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 */
        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 */
 };
 
index 9741e7503591c153b961261d24d5fa9fee833afc..de93067a5da3201cfc9e418287e936b68ed37fdc 100644 (file)
@@ -995,7 +995,7 @@ static acpi_status osl_list_customized_tables(char *directory)
 {
        void *table_dir;
        u32 instance;
-       char temp_name[ACPI_NAMESEG_SIZE];
+       char temp_name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING;
        char *filename;
        acpi_status status = AE_OK;
 
@@ -1312,7 +1312,7 @@ osl_get_customized_table(char *pathname,
 {
        void *table_dir;
        u32 current_instance = 0;
-       char temp_name[ACPI_NAMESEG_SIZE];
+       char temp_name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING;
        char table_filename[PATH_MAX];
        char *filename;
        acpi_status status;