Blame SOURCES/0015-Support-ERST-in-a-big-endian-world.patch

9897bb
From e588961ca36e70c24aa1c49e96bcd1997bf98f89 Mon Sep 17 00:00:00 2001
9897bb
From: Al Stone <ahs3@redhat.com>
9897bb
Date: Sat, 19 Sep 2020 15:54:56 -0600
9897bb
Subject: [PATCH 15/45] Support ERST in a big-endian world
9897bb
9897bb
Signed-off-by: Al Stone <ahs3@redhat.com>
9897bb
---
9897bb
 source/common/dmtbdump1.c | 4 ++--
9897bb
 1 file changed, 2 insertions(+), 2 deletions(-)
9897bb
9897bb
Index: acpica-unix2-20210604/source/common/dmtbdump1.c
9897bb
===================================================================
9897bb
--- acpica-unix2-20210604.orig/source/common/dmtbdump1.c
9897bb
+++ acpica-unix2-20210604/source/common/dmtbdump1.c
9897bb
@@ -935,7 +935,7 @@ AcpiDmDumpErst (
9897bb
 {
9897bb
     ACPI_STATUS             Status;
9897bb
     ACPI_WHEA_HEADER        *Subtable;
9897bb
-    UINT32                  Length = Table->Length;
9897bb
+    UINT32                  Length = AcpiUtReadUint32 (&Table->Length);
9897bb
     UINT32                  Offset = sizeof (ACPI_TABLE_ERST);
9897bb
 
9897bb
 
9897bb
@@ -950,7 +950,7 @@ AcpiDmDumpErst (
9897bb
     /* Subtables */
9897bb
 
9897bb
     Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset);
9897bb
-    while (Offset < Table->Length)
9897bb
+    while (Offset < Length)
9897bb
     {
9897bb
         AcpiOsPrintf ("\n");
9897bb
         Status = AcpiDmDumpTable (Length, Offset, Subtable,