aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/executer
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/executer')
-rw-r--r--drivers/acpi/executer/exconfig.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c
index 20a5ab87e88f..7aa18f93f95d 100644
--- a/drivers/acpi/executer/exconfig.c
+++ b/drivers/acpi/executer/exconfig.c
@@ -279,13 +279,14 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
279 acpi_native_uint table_index; 279 acpi_native_uint table_index;
280 acpi_physical_address address; 280 acpi_physical_address address;
281 struct acpi_table_header table_header; 281 struct acpi_table_header table_header;
282 struct acpi_table_desc table_desc;
282 acpi_integer temp; 283 acpi_integer temp;
283 u32 i; 284 u32 i;
284 285
285 ACPI_FUNCTION_TRACE(ex_load_op); 286 ACPI_FUNCTION_TRACE(ex_load_op);
286 287
287 /* Object can be either an op_region or a Field */ 288 /* Object can be either an op_region or a Field */
288 289 ACPI_MEMSET(&table_desc, 0, sizeof(struct acpi_table_desc));
289 switch (ACPI_GET_OBJECT_TYPE(obj_desc)) { 290 switch (ACPI_GET_OBJECT_TYPE(obj_desc)) {
290 case ACPI_TYPE_REGION: 291 case ACPI_TYPE_REGION:
291 292
@@ -408,10 +409,13 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
408 goto cleanup; 409 goto cleanup;
409 } 410 }
410 411
412 table_desc.pointer = table_ptr;
413 table_desc.length = table_ptr->length;
414 table_desc.flags = ACPI_TABLE_ORIGIN_ALLOCATED;
411 /* 415 /*
412 * Install the new table into the local data structures 416 * Install the new table into the local data structures
413 */ 417 */
414 status = acpi_tb_add_table(table_ptr, &table_index); 418 status = acpi_tb_add_table(&table_desc, &table_index);
415 if (ACPI_FAILURE(status)) { 419 if (ACPI_FAILURE(status)) {
416 goto cleanup; 420 goto cleanup;
417 } 421 }