diff options
Diffstat (limited to 'drivers/acpi/utilities/utcopy.c')
| -rw-r--r-- | drivers/acpi/utilities/utcopy.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c index 5442b32de611..568df9e42f89 100644 --- a/drivers/acpi/utilities/utcopy.c +++ b/drivers/acpi/utilities/utcopy.c | |||
| @@ -398,14 +398,17 @@ acpi_ut_copy_iobject_to_eobject(union acpi_operand_object *internal_object, | |||
| 398 | * Build a simple object (no nested objects) | 398 | * Build a simple object (no nested objects) |
| 399 | */ | 399 | */ |
| 400 | status = acpi_ut_copy_isimple_to_esimple(internal_object, | 400 | status = acpi_ut_copy_isimple_to_esimple(internal_object, |
| 401 | (union acpi_object *) | 401 | ACPI_CAST_PTR(union |
| 402 | ret_buffer->pointer, | 402 | acpi_object, |
| 403 | ((u8 *) ret_buffer-> | 403 | ret_buffer-> |
| 404 | pointer + | 404 | pointer), |
| 405 | ACPI_ROUND_UP_TO_NATIVE_WORD | 405 | ACPI_ADD_PTR(u8, |
| 406 | (sizeof | 406 | ret_buffer-> |
| 407 | (union | 407 | pointer, |
| 408 | acpi_object))), | 408 | ACPI_ROUND_UP_TO_NATIVE_WORD |
| 409 | (sizeof | ||
| 410 | (union | ||
| 411 | acpi_object))), | ||
| 409 | &ret_buffer->length); | 412 | &ret_buffer->length); |
| 410 | /* | 413 | /* |
| 411 | * build simple does not include the object size in the length | 414 | * build simple does not include the object size in the length |
