Blame SOURCES/0048-Support-RGRT-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/dmtbdump2.c | 7 ++++---
146b90
 1 file changed, 4 insertions(+), 3 deletions(-)
146b90
146b90
Index: acpica-unix2-20210604/source/common/dmtbdump2.c
146b90
===================================================================
146b90
--- acpica-unix2-20210604.orig/source/common/dmtbdump2.c
146b90
+++ acpica-unix2-20210604/source/common/dmtbdump2.c
146b90
@@ -2019,11 +2019,12 @@ AcpiDmDumpRgrt (
146b90
     ACPI_STATUS             Status;
146b90
     ACPI_TABLE_RGRT         *Subtable = ACPI_CAST_PTR (ACPI_TABLE_RGRT, Table);
146b90
     UINT32                  Offset = sizeof (ACPI_TABLE_RGRT);
146b90
+    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
146b90
 
146b90
 
146b90
     /* Main table */
146b90
 
146b90
-    Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoRgrt);
146b90
+    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoRgrt);
146b90
     if (ACPI_FAILURE (Status))
146b90
     {
146b90
         return;
146b90
@@ -2031,8 +2032,8 @@ AcpiDmDumpRgrt (
146b90
 
146b90
     /* Dump the binary image as a subtable */
146b90
 
146b90
-    Status = AcpiDmDumpTable (Table->Length, Offset, &Subtable->Image,
146b90
-        Table->Length - Offset, AcpiDmTableInfoRgrt0);
146b90
+    Status = AcpiDmDumpTable (TableLength, Offset, &Subtable->Image,
146b90
+        TableLength - Offset, AcpiDmTableInfoRgrt0);
146b90
     if (ACPI_FAILURE (Status))
146b90
     {
146b90
         return;