This does not change the current behaviour, but filterops should be
invoked through filter_*() for consistency.
-/* $OpenBSD: kern_event.c,v 1.161 2021/02/24 14:59:52 visa Exp $ */
+/* $OpenBSD: kern_event.c,v 1.162 2021/02/27 13:43:16 visa Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
kn->kn_fp = NULL;
kn->kn_fop = &badfd_filtops;
- kn->kn_fop->f_event(kn, 0);
+ filter_event(kn, 0);
knote_activate(kn);
s = splhigh();
knote_release(kn);