Blame SOURCES/0014-Support-EINJ-in-a-big-endian-world.patch

214d7a
From 70d1047abe010c80c2dd74f6afdc7005b91e6163 Mon Sep 17 00:00:00 2001
214d7a
From: Al Stone <ahs3@redhat.com>
214d7a
Date: Sat, 19 Sep 2020 15:50:19 -0600
214d7a
Subject: [PATCH 14/45] Support EINJ in a big-endian world
214d7a
214d7a
Signed-off-by: Al Stone <ahs3@redhat.com>
214d7a
---
214d7a
 source/common/dmtbdump1.c | 4 ++--
214d7a
 1 file changed, 2 insertions(+), 2 deletions(-)
214d7a
214d7a
Index: acpica-unix2-20210604/source/common/dmtbdump1.c
214d7a
===================================================================
214d7a
--- acpica-unix2-20210604.orig/source/common/dmtbdump1.c
214d7a
+++ acpica-unix2-20210604/source/common/dmtbdump1.c
214d7a
@@ -882,7 +882,7 @@ AcpiDmDumpEinj (
214d7a
 {
214d7a
     ACPI_STATUS             Status;
214d7a
     ACPI_WHEA_HEADER        *Subtable;
214d7a
-    UINT32                  Length = Table->Length;
214d7a
+    UINT32                  Length = AcpiUtReadUint32 (&Table->Length);
214d7a
     UINT32                  Offset = sizeof (ACPI_TABLE_EINJ);
214d7a
 
214d7a
 
214d7a
@@ -897,7 +897,7 @@ AcpiDmDumpEinj (
214d7a
     /* Subtables */
214d7a
 
214d7a
     Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset);
214d7a
-    while (Offset < Table->Length)
214d7a
+    while (Offset < Length)
214d7a
     {
214d7a
         AcpiOsPrintf ("\n");
214d7a
         Status = AcpiDmDumpTable (Length, Offset, Subtable,