Blame SOURCES/0008-Support-MADT-aka-APIC-in-a-big-endian-world.patch

9897bb
From 7b107ab7348d903108140f6033e90596b12325c4 Mon Sep 17 00:00:00 2001
9897bb
From: Al Stone <ahs3@redhat.com>
9897bb
Date: Thu, 15 Oct 2020 12:12:11 -0600
9897bb
Subject: [PATCH 08/45] Support MADT (aka APIC) in a big-endian world
9897bb
9897bb
Signed-off-by: Al Stone <ahs3@redhat.com>
9897bb
---
9897bb
 source/common/dmtbdump2.c | 4 ++--
9897bb
 1 file changed, 2 insertions(+), 2 deletions(-)
9897bb
9897bb
Index: acpica-unix2-20210604/source/common/dmtbdump2.c
9897bb
===================================================================
9897bb
--- acpica-unix2-20210604.orig/source/common/dmtbdump2.c
9897bb
+++ acpica-unix2-20210604/source/common/dmtbdump2.c
9897bb
@@ -763,7 +763,7 @@ AcpiDmDumpMadt (
9897bb
 {
9897bb
     ACPI_STATUS             Status;
9897bb
     ACPI_SUBTABLE_HEADER    *Subtable;
9897bb
-    UINT32                  Length = Table->Length;
9897bb
+    UINT32                  Length = AcpiUtReadUint32 (&Table->Length);
9897bb
     UINT32                  Offset = sizeof (ACPI_TABLE_MADT);
9897bb
     ACPI_DMTABLE_INFO       *InfoTable;
9897bb
 
9897bb
@@ -779,7 +779,7 @@ AcpiDmDumpMadt (
9897bb
     /* Subtables */
9897bb
 
9897bb
     Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset);
9897bb
-    while (Offset < Table->Length)
9897bb
+    while (Offset < Length)
9897bb
     {
9897bb
         /* Common subtable header */
9897bb