Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177487
b: refs/heads/master
c: fbc3be2
h: refs/heads/master
i:
  177485: 784f8ce
  177483: 1a7c07c
  177479: 6c69281
  177471: 92b73fd
v: v3
  • Loading branch information
Dan Carpenter authored and Len Brown committed Dec 15, 2009
1 parent fcb16c1 commit 0020514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: d4085a3ffee8828f7f1bae7fa3cf5e58f59ba627
refs/heads/master: fbc3be2af3e8beb581a20c2a0cfda5692f5a1c08
18 changes: 9 additions & 9 deletions trunk/drivers/acpi/acpica/exmutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,15 @@ acpi_ex_release_mutex(union acpi_operand_object *obj_desc,
return_ACPI_STATUS(AE_AML_MUTEX_NOT_ACQUIRED);
}

/* Must have a valid thread ID */

if (!walk_state->thread) {
ACPI_ERROR((AE_INFO,
"Cannot release Mutex [%4.4s], null thread info",
acpi_ut_get_node_name(obj_desc->mutex.node)));
return_ACPI_STATUS(AE_AML_INTERNAL);
}

/*
* The Mutex is owned, but this thread must be the owner.
* Special case for Global Lock, any thread can release
Expand All @@ -392,15 +401,6 @@ acpi_ex_release_mutex(union acpi_operand_object *obj_desc,
return_ACPI_STATUS(AE_AML_NOT_OWNER);
}

/* Must have a valid thread ID */

if (!walk_state->thread) {
ACPI_ERROR((AE_INFO,
"Cannot release Mutex [%4.4s], null thread info",
acpi_ut_get_node_name(obj_desc->mutex.node)));
return_ACPI_STATUS(AE_AML_INTERNAL);
}

/*
* The sync level of the mutex must be equal to the current sync level. In
* other words, the current level means that at least one mutex at that
Expand Down

0 comments on commit 0020514

Please sign in to comment.