|
|
214d7a |
From e588961ca36e70c24aa1c49e96bcd1997bf98f89 Mon Sep 17 00:00:00 2001
|
|
|
214d7a |
From: Al Stone <ahs3@redhat.com>
|
|
|
214d7a |
Date: Sat, 19 Sep 2020 15:54:56 -0600
|
|
|
214d7a |
Subject: [PATCH 15/45] Support ERST 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 |
@@ -935,7 +935,7 @@ AcpiDmDumpErst (
|
|
|
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_ERST);
|
|
|
214d7a |
|
|
|
214d7a |
|
|
|
214d7a |
@@ -950,7 +950,7 @@ AcpiDmDumpErst (
|
|
|
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,
|