patch-2.4.2 linux/drivers/acpi/namespace/nseval.c
Next file: linux/drivers/acpi/namespace/nsinit.c
Previous file: linux/drivers/acpi/interpreter/amutils.c
Back to the patch index
Back to the overall index
- Lines: 66
- Date:
Fri Feb 9 11:45:58 2001
- Orig file:
v2.4.1/linux/drivers/acpi/namespace/nseval.c
- Orig date:
Sat Feb 3 19:51:26 2001
diff -u --recursive --new-file v2.4.1/linux/drivers/acpi/namespace/nseval.c linux/drivers/acpi/namespace/nseval.c
@@ -2,7 +2,7 @@
*
* Module Name: nseval - Object evaluation interfaces -- includes control
* method lookup and execution.
- * $Revision: 81 $
+ * $Revision: 83 $
*
******************************************************************************/
@@ -253,8 +253,8 @@
node = acpi_ns_convert_handle_to_entry (handle);
if (!node) {
- status = AE_BAD_PARAMETER;
- goto unlock_and_exit;
+ acpi_cm_release_mutex (ACPI_MTX_NAMESPACE);
+ return (AE_BAD_PARAMETER);
}
@@ -316,12 +316,6 @@
* so we just return
*/
return (status);
-
-
-unlock_and_exit:
-
- acpi_cm_release_mutex (ACPI_MTX_NAMESPACE);
- return (status);
}
@@ -354,14 +348,6 @@
ACPI_OPERAND_OBJECT *obj_desc;
- /* Verify that there is a method associated with this object */
-
- obj_desc = acpi_ns_get_attached_object ((ACPI_HANDLE) method_node);
- if (!obj_desc) {
- return (AE_ERROR);
- }
-
-
/*
* Unlock the namespace before execution. This allows namespace access
* via the external Acpi* interfaces while a method is being executed.
@@ -372,8 +358,16 @@
acpi_cm_release_mutex (ACPI_MTX_NAMESPACE);
+ /* Verify that there is a method associated with this object */
+
+ obj_desc = acpi_ns_get_attached_object ((ACPI_HANDLE) method_node);
+ if (!obj_desc) {
+ return (AE_ERROR);
+ }
+
+
/*
- * Excecute the method via the interpreter
+ * Execute the method via the interpreter
*/
status = acpi_aml_execute_method (method_node, params, return_obj_desc);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)