diff options
author | Robert Moore <Robert.Moore@intel.com> | 2020-04-08 10:53:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 10:53:43 -0700 |
commit | 19a286eefc75d39d47222a53e06cf5be70a349e9 (patch) | |
tree | a18c16c4dc13cac59fbada88bc4ad93e5687e4cb | |
parent | 48615dba12580f3acf1f46acc4e61ac878f47f73 (diff) | |
parent | f84dc957fd2ff041010655f277c5b10573a44c57 (diff) | |
download | acpica-19a286eefc75d39d47222a53e06cf5be70a349e9.tar.gz |
Merge pull request #585 from SchmErik/uninitialized-var
IVRS table: fix potentially uninitialized variable warning
-rw-r--r-- | source/common/dmtbdump2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/common/dmtbdump2.c b/source/common/dmtbdump2.c index 688a2cf94..45484825a 100644 --- a/source/common/dmtbdump2.c +++ b/source/common/dmtbdump2.c @@ -528,8 +528,10 @@ AcpiDmDumpIvrs ( DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, sizeof (ACPI_IVRS_HARDWARE1)); } - else if (Subtable->Type == ACPI_IVRS_TYPE_HARDWARE2) + else { + /* ACPI_IVRS_TYPE_HARDWARE2 subtable type */ + EntryOffset = Offset + sizeof (ACPI_IVRS_HARDWARE2); DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, sizeof (ACPI_IVRS_HARDWARE2)); |