]> err.no Git - linux-2.6/commitdiff
Revert "[PATCH] ACPI: fix vendor resource length computation"
authorLen Brown <lenb@toshiba.site>
Fri, 31 Mar 2006 07:16:19 +0000 (02:16 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 31 Mar 2006 07:16:19 +0000 (02:16 -0500)
fixed in a different way by a subsequent ACPICA patch

This reverts 35b73ceb9a7d10c81bd9e79e8485f7079ef2b40e commit.

drivers/acpi/resources/rscalc.c

index 4038dbfa63a0c1b88de380d9a80b326dfd24c39c..7d6481d9fbecded65bbeb2137bf718cd6ea18c64 100644 (file)
@@ -391,7 +391,8 @@ acpi_rs_get_list_length(u8 * aml_buffer,
                         * Ensure a 32-bit boundary for the structure
                         */
                        extra_struct_bytes =
-                           ACPI_ROUND_UP_to_32_bITS(resource_length);
+                           ACPI_ROUND_UP_to_32_bITS(resource_length) -
+                           resource_length;
                        break;
 
                case ACPI_RESOURCE_NAME_END_TAG:
@@ -407,7 +408,8 @@ acpi_rs_get_list_length(u8 * aml_buffer,
                         * Add vendor data and ensure a 32-bit boundary for the structure
                         */
                        extra_struct_bytes =
-                           ACPI_ROUND_UP_to_32_bITS(resource_length);
+                           ACPI_ROUND_UP_to_32_bITS(resource_length) -
+                           resource_length;
                        break;
 
                case ACPI_RESOURCE_NAME_ADDRESS32: