diff options
-rw-r--r-- | drivers/acpi/resources/rscalc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/resources/rscalc.c b/drivers/acpi/resources/rscalc.c index 4038dbfa63a0..7d6481d9fbec 100644 --- a/drivers/acpi/resources/rscalc.c +++ b/drivers/acpi/resources/rscalc.c | |||
@@ -391,7 +391,8 @@ acpi_rs_get_list_length(u8 * aml_buffer, | |||
391 | * Ensure a 32-bit boundary for the structure | 391 | * Ensure a 32-bit boundary for the structure |
392 | */ | 392 | */ |
393 | extra_struct_bytes = | 393 | extra_struct_bytes = |
394 | ACPI_ROUND_UP_to_32_bITS(resource_length); | 394 | ACPI_ROUND_UP_to_32_bITS(resource_length) - |
395 | resource_length; | ||
395 | break; | 396 | break; |
396 | 397 | ||
397 | case ACPI_RESOURCE_NAME_END_TAG: | 398 | case ACPI_RESOURCE_NAME_END_TAG: |
@@ -407,7 +408,8 @@ acpi_rs_get_list_length(u8 * aml_buffer, | |||
407 | * Add vendor data and ensure a 32-bit boundary for the structure | 408 | * Add vendor data and ensure a 32-bit boundary for the structure |
408 | */ | 409 | */ |
409 | extra_struct_bytes = | 410 | extra_struct_bytes = |
410 | ACPI_ROUND_UP_to_32_bITS(resource_length); | 411 | ACPI_ROUND_UP_to_32_bITS(resource_length) - |
412 | resource_length; | ||
411 | break; | 413 | break; |
412 | 414 | ||
413 | case ACPI_RESOURCE_NAME_ADDRESS32: | 415 | case ACPI_RESOURCE_NAME_ADDRESS32: |