Blame SOURCES/0049-Support-SVKL-in-a-big-endian-world.patch

146b90
Signed-off-by: Dean Nelson <dnelson@redhat.com>
146b90
Reviewed-by: Al Stone <ahs3@redhat.com>
146b90
---
146b90
 source/common/dmtbdump3.c | 8 ++++----
146b90
 1 file changed, 4 insertions(+), 4 deletions(-)
146b90
146b90
Index: acpica-unix2-20210604/source/common/dmtbdump3.c
146b90
===================================================================
146b90
--- acpica-unix2-20210604.orig/source/common/dmtbdump3.c
146b90
+++ acpica-unix2-20210604/source/common/dmtbdump3.c
146b90
@@ -339,14 +339,14 @@ AcpiDmDumpSvkl (
146b90
     ACPI_TABLE_HEADER       *Table)
146b90
 {
146b90
     ACPI_STATUS             Status;
146b90
-    UINT32                  Length = Table->Length;
146b90
+    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
146b90
     UINT32                  Offset = sizeof (ACPI_TABLE_SVKL);
146b90
     ACPI_SVKL_KEY           *Subtable;
146b90
 
146b90
 
146b90
     /* Main table */
146b90
 
146b90
-    Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSvkl);
146b90
+    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoSvkl);
146b90
     if (ACPI_FAILURE (Status))
146b90
     {
146b90
         return;
146b90
@@ -355,12 +355,12 @@ AcpiDmDumpSvkl (
146b90
     /* The rest of the table consists of subtables (single type) */
146b90
 
146b90
     Subtable = ACPI_ADD_PTR (ACPI_SVKL_KEY, Table, Offset);
146b90
-    while (Offset < Table->Length)
146b90
+    while (Offset < TableLength)
146b90
     {
146b90
         /* Dump the subtable */
146b90
 
146b90
         AcpiOsPrintf ("\n");
146b90
-        Status = AcpiDmDumpTable (Table->Length, Offset, Subtable,
146b90
+        Status = AcpiDmDumpTable (TableLength, Offset, Subtable,
146b90
             sizeof (ACPI_SVKL_KEY), AcpiDmTableInfoSvkl0);
146b90
         if (ACPI_FAILURE (Status))
146b90
         {