Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151008
b: refs/heads/master
c: 06366c1
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed May 27, 2009
1 parent 5ac889a commit c58ccfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c725bf93706db976e9de495579ca625d493e809
refs/heads/master: 06366c149232f64c89f513f188ccc6783d0e444f
9 changes: 6 additions & 3 deletions trunk/drivers/acpi/acpica/exconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ acpi_ex_load_table_op(struct acpi_walk_state *walk_state,
walk_state);
if (ACPI_FAILURE(status)) {
(void)acpi_ex_unload_table(ddb_handle);

acpi_ut_remove_reference(ddb_handle);
return_ACPI_STATUS(status);
}
}
Expand Down Expand Up @@ -454,6 +456,10 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
return_ACPI_STATUS(status);
}

/* Remove the reference by added by acpi_ex_store above */

acpi_ut_remove_reference(ddb_handle);

/* Invoke table handler if present */

if (acpi_gbl_table_handler) {
Expand Down Expand Up @@ -530,8 +536,5 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle)
(void)acpi_tb_release_owner_id(table_index);
acpi_tb_set_table_loaded_flag(table_index, FALSE);

/* Table unloaded, remove a reference to the ddb_handle object */

acpi_ut_remove_reference(ddb_handle);
return_ACPI_STATUS(AE_OK);
}

0 comments on commit c58ccfc

Please sign in to comment.