diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-05-27 13:14:55 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-28 19:25:42 -0400 |
commit | 2947c1d5f72b77078aeb3df05d4298274234534d (patch) | |
tree | c22cdfc06f18da12a96be1a6e598576cfff1e35e /tools | |
parent | a238317ce8185519ed083e81e84260907fbbcf7f (diff) |
ACPICA: acpidump: Fix repetitive table dump in -n mode.
In "-n" mode, reserved tables (RSDP/RSDT/XSDT/DSDT/FACS) are dumped
multiple times due a missing instance check in osl_get_bios_table().
This patch fixes this issue.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c b/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c index ba7bad04dff1..28c52008e854 100644 --- a/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c +++ b/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | |||
@@ -783,6 +783,10 @@ osl_get_bios_table(char *signature, | |||
783 | ACPI_COMPARE_NAME(signature, ACPI_SIG_XSDT) || | 783 | ACPI_COMPARE_NAME(signature, ACPI_SIG_XSDT) || |
784 | ACPI_COMPARE_NAME(signature, ACPI_SIG_DSDT) || | 784 | ACPI_COMPARE_NAME(signature, ACPI_SIG_DSDT) || |
785 | ACPI_COMPARE_NAME(signature, ACPI_SIG_FACS)) { | 785 | ACPI_COMPARE_NAME(signature, ACPI_SIG_FACS)) { |
786 | if (instance > 0) { | ||
787 | return (AE_LIMIT); | ||
788 | } | ||
789 | |||
786 | /* | 790 | /* |
787 | * Get the appropriate address, either 32-bit or 64-bit. Be very | 791 | * Get the appropriate address, either 32-bit or 64-bit. Be very |
788 | * careful about the FADT length and validate table addresses. | 792 | * careful about the FADT length and validate table addresses. |