summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKees Cook <kees@outflux.net>2022-11-18 09:49:35 -0800
committerKees Cook <kees@outflux.net>2023-03-02 11:03:42 -0800
commite7f6d8c1b7f79eb4b9b07f1bc09c549a2acbd6e8 (patch)
tree3e3bf2a4e59114097d78401132d08b13aae21a77
parent3c19ae70424e9ab1e1b805203d300d2660f9a2f7 (diff)
downloadacpica-e7f6d8c1b7f79eb4b9b07f1bc09c549a2acbd6e8.tar.gz
ACPI_MADT_OEM_DATA: Fix flexible array member definition
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.
-rw-r--r--source/include/actbl2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/actbl2.h b/source/include/actbl2.h
index c594658ac..7c3243385 100644
--- a/source/include/actbl2.h
+++ b/source/include/actbl2.h
@@ -1552,7 +1552,7 @@ enum AcpiMadtLpcPicVersion {
typedef struct acpi_madt_oem_data
{
- UINT8 OemData[0];
+ ACPI_FLEX_ARRAY(UINT8, OemData);
} ACPI_MADT_OEM_DATA;