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