ACPICA: acpi_madt_oem_data: Fix flexible array member definition
authorKees Cook <kees@outflux.net>
Wed, 5 Apr 2023 13:56:06 +0000 (15:56 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Apr 2023 18:29:12 +0000 (20:29 +0200)
ACPICA commit e7f6d8c1b7f79eb4b9b07f1bc09c549a2acbd6e8

Use ACPI_FLEX_ARRAY() helper to define flexible array member alone in a
struct. Fixes issue #812.

No binary changes appear in the .text nor .data sections.

Link: https://github.com/acpica/acpica/commit/e7f6d8c1
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/actbl2.h

index a51fd40..0029336 100644 (file)
@@ -1274,7 +1274,7 @@ enum acpi_madt_rintc_version {
 /* 80: OEM data */
 
 struct acpi_madt_oem_data {
-       u8 oem_data[0];
+       ACPI_FLEX_ARRAY(u8, oem_data);
 };
 
 /*