Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150992
b: refs/heads/master
c: 33a1d46
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed May 27, 2009
1 parent efe78d1 commit d2035e8
Show file tree
Hide file tree
Showing 2 changed files with 24 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: 8eb7b2477c4e4fec4788605e4edb5f7acafb59ff
refs/heads/master: 33a1d461d294722dd15ffe17651bdd48b5763883
23 changes: 23 additions & 0 deletions trunk/drivers/acpi/acpica/utcopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ acpi_ut_copy_simple_object(union acpi_operand_object *source_desc,
{
u16 reference_count;
union acpi_operand_object *next_object;
acpi_status status;

/* Save fields from destination that we don't want to overwrite */

Expand Down Expand Up @@ -768,6 +769,28 @@ acpi_ut_copy_simple_object(union acpi_operand_object *source_desc,
}
break;

/*
* For Mutex and Event objects, we cannot simply copy the underlying
* OS object. We must create a new one.
*/
case ACPI_TYPE_MUTEX:

status = acpi_os_create_mutex(&dest_desc->mutex.os_mutex);
if (ACPI_FAILURE(status)) {
return status;
}
break;

case ACPI_TYPE_EVENT:

status = acpi_os_create_semaphore(ACPI_NO_UNIT_LIMIT, 0,
&dest_desc->event.
os_semaphore);
if (ACPI_FAILURE(status)) {
return status;
}
break;

default:
/* Nothing to do for other simple objects */
break;
Expand Down

0 comments on commit d2035e8

Please sign in to comment.