git: kernel - Fix badfo_kqfilter for badfileops

Matthew Dillon dillon at
Sat Aug 28 11:10:38 PDT 2010

commit 304d60e8383b8c29ca01daedd3d21169d4347997
Author: Matthew Dillon <dillon at>
Date:   Sat Aug 28 09:02:47 2010 -0700

    kernel - Fix badfo_kqfilter for badfileops
    * badfo_kqfilter() must return an error to cause the kqueue
      registraton to drop the knote, otherwise a kernel panic
      will occur because the default file_filtops isn't replaced
      and has not detach or event functions.

Summary of changes:
 sys/kern/kern_descrip.c |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list