diff options
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index f12ff8201f3f..d4315de450d8 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -675,7 +675,7 @@ witness_lock(struct lock_object *lock, int flags, const char *file, int line) * is Giant, then skip it. */ if ((lock->lo_flags & LO_SLEEPABLE) != 0 && - lock1->li_lock != &Giant.mtx_object) + lock1->li_lock == &Giant.mtx_object) continue; /* * If we are locking a sleepable lock and this lock |