patch-2.4.26 linux-2.4.26/drivers/acpi/namespace/nsutils.c

Next file: linux-2.4.26/drivers/acpi/namespace/nsxfeval.c
Previous file: linux-2.4.26/drivers/acpi/namespace/nssearch.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/acpi/namespace/nsutils.c linux-2.4.26/drivers/acpi/namespace/nsutils.c
@@ -256,7 +256,7 @@
 
 
 	if (!node) {
-		ACPI_REPORT_WARNING (("ns_get_type: Null Node ptr"));
+		ACPI_REPORT_WARNING (("ns_get_type: Null Node input pointer\n"));
 		return_VALUE (ACPI_TYPE_ANY);
 	}
 
@@ -918,7 +918,7 @@
 
 	status = acpi_ut_acquire_mutex (ACPI_MTX_NAMESPACE);
 	if (ACPI_FAILURE (status)) {
-		return_ACPI_STATUS (status);
+		goto cleanup;
 	}
 
 	/* Setup lookup scope (search starting point) */
@@ -936,10 +936,10 @@
 				internal_path, acpi_format_exception (status)));
 	}
 
-	/* Cleanup */
-
 	(void) acpi_ut_release_mutex (ACPI_MTX_NAMESPACE);
 
+cleanup:
+	/* Cleanup */
 	if (internal_path) {
 		ACPI_MEM_FREE (internal_path);
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)