Skip to content

Commit

Permalink
ACPICA: Fix for Global Lock semaphore.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Moore authored and Len Brown committed Feb 3, 2007
1 parent 14d64b5 commit 73ca0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/namespace/nsaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ acpi_status acpi_ns_root_initialize(void)
/* Create additional counting semaphore for global lock */

status =
acpi_os_create_semaphore(1, 1,
acpi_os_create_semaphore(1, 0,
&acpi_gbl_global_lock_semaphore);
if (ACPI_FAILURE(status)) {
acpi_ut_remove_reference
Expand Down

0 comments on commit 73ca0fb

Please sign in to comment.