Skip to content

Commit

Permalink
Revert "[PATCH] ACPI: fix vendor resource length computation"
Browse files Browse the repository at this point in the history
fixed in a different way by a subsequent ACPICA patch

This reverts 35b73ce commit.
  • Loading branch information
Len Brown authored and Len Brown committed Mar 31, 2006
1 parent a0f0678 commit 4635861
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/acpi/resources/rscalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 4635861

Please sign in to comment.