]> git.pld-linux.org Git - packages/acpica.git/blame - 0034-Support-STAO-in-a-big-endian-world.patch
- noted download URL
[packages/acpica.git] / 0034-Support-STAO-in-a-big-endian-world.patch
CommitLineData
b643ab7e
JB
1From c313a76ce818135f02ab158a9f0c8e4b8e96698a Mon Sep 17 00:00:00 2001
2From: Al Stone <ahs3@redhat.com>
3Date: Mon, 28 Sep 2020 11:49:42 -0600
4Subject: [PATCH 34/45] Support STAO in a big-endian world
5
6Signed-off-by: Al Stone <ahs3@redhat.com>
7---
8 source/common/dmtbdump3.c | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11Index: 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 (
16 {
17 ACPI_STATUS Status;
18 char *Namepath;
19- UINT32 Length = Table->Length;
20+ UINT32 TableLength = AcpiUtReadUint32 (&Table->Length);
21 UINT32 StringLength;
22 UINT32 Offset = sizeof (ACPI_TABLE_STAO);
23
24
25 /* Main table */
26
27- Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoStao);
28+ Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoStao);
29 if (ACPI_FAILURE (Status))
30 {
31 return;
32@@ -305,7 +305,7 @@ AcpiDmDumpStao (
33
34 /* The rest of the table consists of Namepath strings */
35
36- while (Offset < Table->Length)
37+ while (Offset < TableLength)
38 {
39 Namepath = ACPI_ADD_PTR (char, Table, Offset);
40 StringLength = strlen (Namepath) + 1;
This page took 0.038772 seconds and 4 git commands to generate.