Commit 12fd6075 authored by Ahmed Salem's avatar Ahmed Salem Committed by Rafael J. Wysocki
Browse files

ACPICA: Apply ACPI_NONSTRING

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

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

Link: https://github.com/acpica/acpica/commit/f359e5ed


Fixes: 2b821188 ("ACPICA: Apply ACPI_NONSTRING")
Signed-off-by: default avatarAhmed Salem <x0rw3ll@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent feb8ae81
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */
};

+2 −2
Original line number Diff line number Diff line
@@ -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;