1 From c313a76ce818135f02ab158a9f0c8e4b8e96698a Mon Sep 17 00:00:00 2001
2 From: Al Stone <ahs3@redhat.com>
3 Date: Mon, 28 Sep 2020 11:49:42 -0600
4 Subject: [PATCH 34/45] Support STAO in a big-endian world
6 Signed-off-by: Al Stone <ahs3@redhat.com>
8 source/common/dmtbdump3.c | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
11 Index: acpica-unix2-20220331/source/common/dmtbdump3.c
12 ===================================================================
13 --- acpica-unix2-20220331.orig/source/common/dmtbdump3.c
14 +++ acpica-unix2-20220331/source/common/dmtbdump3.c
15 @@ -290,14 +290,14 @@ AcpiDmDumpStao (
19 - UINT32 Length = Table->Length;
20 + UINT32 TableLength = AcpiUtReadUint32 (&Table->Length);
22 UINT32 Offset = sizeof (ACPI_TABLE_STAO);
27 - Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoStao);
28 + Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoStao);
29 if (ACPI_FAILURE (Status))
32 @@ -305,7 +305,7 @@ AcpiDmDumpStao (
34 /* The rest of the table consists of Namepath strings */
36 - while (Offset < Table->Length)
37 + while (Offset < TableLength)
39 Namepath = ACPI_ADD_PTR (char, Table, Offset);
40 StringLength = strlen (Namepath) + 1;