ACPICA: Fix for invalid large array index on 64-bit systems
authorBob Moore <robert.moore@intel.com>
Tue, 10 Jun 2008 06:21:05 +0000 (14:21 +0800)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 16 Jul 2008 21:27:04 +0000 (23:27 +0200)
This problem was introduced in 20080514 as a result of the
elimination of the acpi_native_uint type. Code uses a negative
array index, which should be eliminated.

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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/acpi/executer/exdump.c

index c94638dc42e521d8596bdf7db5d7cde5807ab6df..f337c3f73e0c1afc15fb513780f4a3af95fa2813 100644 (file)
@@ -776,7 +776,7 @@ acpi_ex_dump_operands(union acpi_operand_object **operands,
                      const char *note,
                      const char *module_name, u32 line_number)
 {
-       u32 i;
+       s32 i;
 
        ACPI_FUNCTION_NAME(ex_dump_operands);