Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151014
b: refs/heads/master
c: 3362a6b
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed May 27, 2009
1 parent d5240a2 commit 85aecc5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c446eed6187addf9f76ee0028abed32393aef27e
refs/heads/master: 3362a6badb4fe75e198885b125b21ccf846861b4
21 changes: 21 additions & 0 deletions trunk/drivers/acpi/acpica/utdelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object)
union acpi_operand_object *handler_desc;
union acpi_operand_object *second_desc;
union acpi_operand_object *next_desc;
union acpi_operand_object **last_obj_ptr;

ACPI_FUNCTION_TRACE_PTR(ut_delete_internal_obj, object);

Expand Down Expand Up @@ -223,6 +224,26 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object)
*/
handler_desc = object->region.handler;
if (handler_desc) {
next_desc =
handler_desc->address_space.region_list;
last_obj_ptr =
&handler_desc->address_space.region_list;

/* Remove the region object from the handler's list */

while (next_desc) {
if (next_desc == object) {
*last_obj_ptr =
next_desc->region.next;
break;
}

/* Walk the linked list of handler */

last_obj_ptr = &next_desc->region.next;
next_desc = next_desc->region.next;
}

if (handler_desc->address_space.handler_flags &
ACPI_ADDR_HANDLER_DEFAULT_INSTALLED) {

Expand Down

0 comments on commit 85aecc5

Please sign in to comment.