]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPICA: FADT: Fix extraneous length mismatch warning
authorBob Moore <robert.moore@intel.com>
Fri, 6 Mar 2009 02:09:00 +0000 (10:09 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 27 Mar 2009 16:11:02 +0000 (12:11 -0400)
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>
drivers/acpi/acpica/tbfadt.c

index af8fbe12d8b7b7b001711fa2c349b855ef1e5c02..ff89cfee0e7edb2b2263b5f8c656f986006d05fb 100644 (file)
@@ -491,7 +491,8 @@ static void acpi_tb_validate_fadt(void)
                 * For each extended field, check for length mismatch between the
                 * legacy length field and the corresponding 64-bit X length field.
                 */
-               if (address64 && (address64->bit_width != ACPI_MUL_8(length))) {
+               if (address64->address &&
+                   (address64->bit_width != ACPI_MUL_8(length))) {
                        ACPI_WARNING((AE_INFO,
                                      "32/64X length mismatch in %s: %d/%d",
                                      name, ACPI_MUL_8(length),