diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index c5c4c65dcefd..ed5acf26e233 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1134,13 +1134,14 @@ filt_timerexpire_l(struct knote *kn, bool proc_locked) } if (!proc_locked) PROC_UNLOCK(p); + + knote_leave_flux_ul(kn); return; } if (!proc_locked) PROC_UNLOCK(p); } kqtimer_sched_callout(kc); - knote_leave_flux_ul(kn); }