diff options
author | jkim <jkim@FreeBSD.org> | 2008-09-19 15:25:13 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2008-09-19 15:25:13 +0000 |
commit | 7f5b5d9ca23e4d6cd89c21c0833f6b812b4bd326 (patch) | |
tree | 92d90f83fc05a80416ef9db106efd51915497c65 /sys/dev/acpica | |
parent | b0fffd331629afad95010c6ca3a3f3be604f926d (diff) | |
download | FreeBSD-src-7f5b5d9ca23e4d6cd89c21c0833f6b812b4bd326.zip FreeBSD-src-7f5b5d9ca23e4d6cd89c21c0833f6b812b4bd326.tar.gz |
Clean up DSDT and XSDT correctly instead of FADT when the tables are bad.
Submitted by: jhb
Tested by: olli
MFC after: 3 days
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi_quirk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_quirk.c b/sys/dev/acpica/acpi_quirk.c index f68eb63..b75a527 100644 --- a/sys/dev/acpica/acpi_quirk.c +++ b/sys/dev/acpica/acpi_quirk.c @@ -149,9 +149,9 @@ acpi_table_quirks(int *quirks) if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_FADT, 0, &fadt))) bzero(&fadt, sizeof(fadt)); if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_DSDT, 0, &dsdt))) - bzero(&fadt, sizeof(dsdt)); + bzero(&dsdt, sizeof(dsdt)); if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_XSDT, 0, &xsdt))) - bzero(&fadt, sizeof(xsdt)); + bzero(&xsdt, sizeof(xsdt)); /* Then, override the quirks with any matched from table signatures. */ for (entry = acpi_quirks_table; entry->match; entry++) { |