Blame SOURCES/0048-Support-RGRT-in-a-big-endian-world.patch

82efdd
Signed-off-by: Dean Nelson <dnelson@redhat.com>
82efdd
Reviewed-by: Al Stone <ahs3@redhat.com>
82efdd
---
82efdd
 source/common/dmtbdump2.c | 7 ++++---
82efdd
 1 file changed, 4 insertions(+), 3 deletions(-)
82efdd
82efdd
Index: acpica-unix2-20210604/source/common/dmtbdump2.c
82efdd
===================================================================
82efdd
--- acpica-unix2-20210604.orig/source/common/dmtbdump2.c
82efdd
+++ acpica-unix2-20210604/source/common/dmtbdump2.c
82efdd
@@ -2019,11 +2019,12 @@ AcpiDmDumpRgrt (
82efdd
     ACPI_STATUS             Status;
82efdd
     ACPI_TABLE_RGRT         *Subtable = ACPI_CAST_PTR (ACPI_TABLE_RGRT, Table);
82efdd
     UINT32                  Offset = sizeof (ACPI_TABLE_RGRT);
82efdd
+    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
82efdd
 
82efdd
 
82efdd
     /* Main table */
82efdd
 
82efdd
-    Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoRgrt);
82efdd
+    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoRgrt);
82efdd
     if (ACPI_FAILURE (Status))
82efdd
     {
82efdd
         return;
82efdd
@@ -2031,8 +2032,8 @@ AcpiDmDumpRgrt (
82efdd
 
82efdd
     /* Dump the binary image as a subtable */
82efdd
 
82efdd
-    Status = AcpiDmDumpTable (Table->Length, Offset, &Subtable->Image,
82efdd
-        Table->Length - Offset, AcpiDmTableInfoRgrt0);
82efdd
+    Status = AcpiDmDumpTable (TableLength, Offset, &Subtable->Image,
82efdd
+        TableLength - Offset, AcpiDmTableInfoRgrt0);
82efdd
     if (ACPI_FAILURE (Status))
82efdd
     {
82efdd
         return;