[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2094939.KlZ2vcFHjT@kreacher>
Date: Wed, 05 Apr 2023 15:56:06 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Linux ACPI <linux-acpi@...r.kernel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Bob Moore <robert.moore@...el.com>,
Kees Cook <kees@...flux.net>
Subject: [PATCH 28/32] ACPICA: acpi_madt_oem_data: Fix flexible array member definition
From: Kees Cook <kees@...flux.net>
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@...el.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
---
include/acpi/actbl2.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index a51fd4090d27..0029336775a9 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -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);
};
/*
--
2.35.3
Powered by blists - more mailing lists