diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-19 15:57:54 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-20 18:54:54 +0200 |
commit | 435cc1becf334f650dcdd0763cb0022f27f3f54a (patch) | |
tree | 04ac48a440df761fd08b42b259c684fbbd05e755 /kern | |
parent | 5d3ea1ab58d80f1e0c01a1a441c2847a1334a9ff (diff) |
kern: really zero-out unused simple lock info entries
* kern/lock.c (simple_unlock): Really zero-out unused simple lock info
entries.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/lock.c | 2 |
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 */ |