From: visa Date: Sat, 27 Feb 2021 13:43:16 +0000 (+0000) Subject: Replace stray direct call of f_event with filter_event(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=673024cd94a3b686c9eccc5ec3a0d57757966603;p=openbsd Replace stray direct call of f_event with filter_event(). This does not change the current behaviour, but filterops should be invoked through filter_*() for consistency. --- diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index caa263a71bc..fc26f2eba45 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -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 @@ -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);