summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/lock.c b/kern/lock.c
index 46c78da..1daf1b4 100644
--- a/kern/lock.c
+++ b/kern/lock.c
@@ -219,8 +219,8 @@ void simple_unlock(
simple_locks_info[i] = simple_locks_info[simple_locks_taken-1];
}
- simple_locks_info[simple_locks_taken] = (struct simple_locks_info) {0};
simple_locks_taken--;
+ simple_locks_info[simple_locks_taken] = (struct simple_locks_info) {0};
}
#endif /* MACH_SLOCKS && NCPUS == 1 */