[PATCH] acpi: madt: Fix ITS subtable length check

Jeffrey Hugo jhugo at codeaurora.org
Wed Jul 13 18:41:45 UTC 2016


The ACPI spec defines the MADT GIC ITS subtable length as 20 bytes.  The
test is checking to see if the subtable is 16 bytes in length which causes
an invalid test failure for MADT tables with GIC ITS subtables that follow
the spec.

Signed-off-by: Jeffrey Hugo <jhugo at codeaurora.org>
---
 src/acpi/madt/madt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/acpi/madt/madt.c b/src/acpi/madt/madt.c
index b65b89e..65d3962 100644
--- a/src/acpi/madt/madt.c
+++ b/src/acpi/madt/madt.c
@@ -183,7 +183,7 @@ static struct acpi_madt_subtable_lengths spec_info[] = {
 		.madt_version = 3,
 		.num_types = 16,
 		.lengths = { 8, 12, 10, 8, 6, 12, 16, SUBTABLE_VARIABLE,
-			     16, 16, 12, 80, 24, 24, 16, 16 }
+			     16, 16, 12, 80, 24, 24, 16, 20 }
 	},
 	{ /* terminator */
 		.major_version = 0,
-- 
Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm Technologies,
Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux
Foundation Collaborative Project.




More information about the fwts-devel mailing list