diff options
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r-- | sys/kern/kern_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 2375d13..594c5f0 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1674,7 +1674,7 @@ knlist_init(struct knlist *knl, void *lock, void (*kl_lock)(void *), knl->kl_lock = knlist_mtx_lock; else knl->kl_lock = kl_lock; - if (kl_lock == NULL) + if (kl_unlock == NULL) knl->kl_unlock = knlist_mtx_unlock; else knl->kl_unlock = kl_unlock; |