Explorar o código

ACPICA: Fix for Global Lock semaphore.

Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained, semaphore created with one unit.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Bob Moore %!s(int64=18) %!d(string=hai) anos
pai
achega
73ca0fbcc2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/acpi/namespace/nsaccess.c

+ 1 - 1
drivers/acpi/namespace/nsaccess.c

@@ -214,7 +214,7 @@ acpi_status acpi_ns_root_initialize(void)
 					/* Create additional counting semaphore for global lock */
 					/* Create additional counting semaphore for global lock */
 
 
 					status =
 					status =
-					    acpi_os_create_semaphore(1, 1,
+					    acpi_os_create_semaphore(1, 0,
 								     &acpi_gbl_global_lock_semaphore);
 								     &acpi_gbl_global_lock_semaphore);
 					if (ACPI_FAILURE(status)) {
 					if (ACPI_FAILURE(status)) {
 						acpi_ut_remove_reference
 						acpi_ut_remove_reference