aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/tbfadt.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2009-03-05 21:09:00 -0500
committerLen Brown <len.brown@intel.com>2009-03-27 12:11:02 -0400
commitaab61b676a024d3527f6201e2b31285a96f7a1d2 (patch)
tree23ba90204aa52872d4b96d67d2ba79131668d680 /drivers/acpi/acpica/tbfadt.c
parentd4913dc6d0c680aa106d1d80b5ad2a9325367afd (diff)
ACPICA: FADT: Fix extraneous length mismatch warning
Incorrect register length mismatch between the 32 and 64 bit registers in some cases. Code was was checking the wrong pointer for non-zero, should be looking at the address within the GAS structure. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/tbfadt.c')
-rw-r--r--drivers/acpi/acpica/tbfadt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c
index af8fbe12d8b7..ff89cfee0e7e 100644
--- a/drivers/acpi/acpica/tbfadt.c
+++ b/drivers/acpi/acpica/tbfadt.c
@@ -491,7 +491,8 @@ static void acpi_tb_validate_fadt(void)
491 * For each extended field, check for length mismatch between the 491 * For each extended field, check for length mismatch between the
492 * legacy length field and the corresponding 64-bit X length field. 492 * legacy length field and the corresponding 64-bit X length field.
493 */ 493 */
494 if (address64 && (address64->bit_width != ACPI_MUL_8(length))) { 494 if (address64->address &&
495 (address64->bit_width != ACPI_MUL_8(length))) {
495 ACPI_WARNING((AE_INFO, 496 ACPI_WARNING((AE_INFO,
496 "32/64X length mismatch in %s: %d/%d", 497 "32/64X length mismatch in %s: %d/%d",
497 name, ACPI_MUL_8(length), 498 name, ACPI_MUL_8(length),