ACPICA: Additional validation of _PRT packages (resource mgr)
authorBob Moore <robert.moore@intel.com>
Thu, 21 May 2009 02:10:16 +0000 (10:10 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 27 May 2009 04:35:50 +0000 (00:35 -0400)
Fixes a possible fault when parsing an ill-formed _PRT package.

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/rscalc.c

index d3f77a5..3c4dcc3 100644 (file)
@@ -547,7 +547,7 @@ acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object,
 
                if (!package_element ||
                    (package_element->common.type != ACPI_TYPE_PACKAGE)) {
-                       return_ACPI_STATUS (AE_AML_OPERAND_TYPE);
+                       return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
                }
 
                /*