summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-07-20 23:29:25 +0000
committerjhb <jhb@FreeBSD.org>2001-07-20 23:29:25 +0000
commitb84bdc8767268b16982ee9c9fd414ce1644b9976 (patch)
tree814f4691a827c8931841257381e3094142e4be44 /sys
parent1163fba6474795ee0c5989c890c72b39eec684c0 (diff)
downloadFreeBSD-src-b84bdc8767268b16982ee9c9fd414ce1644b9976.zip
FreeBSD-src-b84bdc8767268b16982ee9c9fd414ce1644b9976.tar.gz
Add a missing ~ so that the LO_INITIALIZED flag actually gets turned off
in witness_destroy().
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_witness.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index df25168..c4744b3 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -393,7 +393,7 @@ witness_destroy(struct lock_object *lock)
mtx_lock(&all_mtx);
lock_cur_cnt--;
STAILQ_REMOVE(&all_locks, lock, lock_object, lo_list);
- lock->lo_flags &= LO_INITIALIZED;
+ lock->lo_flags &= ~LO_INITIALIZED;
mtx_unlock(&all_mtx);
}
OpenPOWER on IntegriCloud