summaryrefslogtreecommitdiff
path: root/executer/exmutex.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2009-12-14 22:07:33 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2009-12-14 22:07:33 +0000
commitdeca274c44eb2d731761ba35813f64bdbdc734df (patch)
treef44ff7d55387c0db90e95e80289d7ed0525b8dd8 /executer/exmutex.c
parent1b40f7cf3cd1180573e2d9ec6cd169e887b720e0 (diff)
Notes
Diffstat (limited to 'executer/exmutex.c')
-rw-r--r--executer/exmutex.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/executer/exmutex.c b/executer/exmutex.c
index db5ab9e77a33..8b1bebf1e917 100644
--- a/executer/exmutex.c
+++ b/executer/exmutex.c
@@ -490,6 +490,15 @@ AcpiExReleaseMutex (
return_ACPI_STATUS (AE_AML_MUTEX_NOT_ACQUIRED);
}
+ /* Must have a valid thread ID */
+
+ if (!WalkState->Thread)
+ {
+ ACPI_ERROR ((AE_INFO, "Cannot release Mutex [%4.4s], null thread info",
+ AcpiUtGetNodeName (ObjDesc->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
@@ -505,15 +514,6 @@ AcpiExReleaseMutex (
return_ACPI_STATUS (AE_AML_NOT_OWNER);
}
- /* Must have a valid thread ID */
-
- if (!WalkState->Thread)
- {
- ACPI_ERROR ((AE_INFO, "Cannot release Mutex [%4.4s], null thread info",
- AcpiUtGetNodeName (ObjDesc->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