]> git.pld-linux.org Git - packages/acpica.git/blob - 0048-Support-RGRT-in-a-big-endian-world.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / 0048-Support-RGRT-in-a-big-endian-world.patch
1 Signed-off-by: Dean Nelson <dnelson@redhat.com>
2 Reviewed-by: Al Stone <ahs3@redhat.com>
3 ---
4  source/common/dmtbdump2.c | 7 ++++---
5  1 file changed, 4 insertions(+), 3 deletions(-)
6
7 Index: acpica-unix2-20220331/source/common/dmtbdump2.c
8 ===================================================================
9 --- acpica-unix2-20220331.orig/source/common/dmtbdump2.c
10 +++ acpica-unix2-20220331/source/common/dmtbdump2.c
11 @@ -2475,11 +2475,12 @@ AcpiDmDumpRgrt (
12      ACPI_STATUS             Status;
13      ACPI_TABLE_RGRT         *Subtable = ACPI_CAST_PTR (ACPI_TABLE_RGRT, Table);
14      UINT32                  Offset = sizeof (ACPI_TABLE_RGRT);
15 +    UINT32                  TableLength = AcpiUtReadUint32 (&Table->Length);
16  
17  
18      /* Main table */
19  
20 -    Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoRgrt);
21 +    Status = AcpiDmDumpTable (TableLength, 0, Table, 0, AcpiDmTableInfoRgrt);
22      if (ACPI_FAILURE (Status))
23      {
24          return;
25 @@ -2487,8 +2488,8 @@ AcpiDmDumpRgrt (
26  
27      /* Dump the binary image as a subtable */
28  
29 -    Status = AcpiDmDumpTable (Table->Length, Offset, &Subtable->Image,
30 -        Table->Length - Offset, AcpiDmTableInfoRgrt0);
31 +    Status = AcpiDmDumpTable (TableLength, Offset, &Subtable->Image,
32 +        TableLength - Offset, AcpiDmTableInfoRgrt0);
33      if (ACPI_FAILURE (Status))
34      {
35          return;
This page took 0.092632 seconds and 4 git commands to generate.