Replace stray direct call of f_event with filter_event().
authorvisa <visa@openbsd.org>
Sat, 27 Feb 2021 13:43:16 +0000 (13:43 +0000)
committervisa <visa@openbsd.org>
Sat, 27 Feb 2021 13:43:16 +0000 (13:43 +0000)
This does not change the current behaviour, but filterops should be
invoked through filter_*() for consistency.

sys/kern/kern_event.c

index caa263a..fc26f2e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
@@ -1605,7 +1605,7 @@ knote_remove(struct proc *p, struct knlist *list, int purge)
                        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);