diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-04-27 10:13:38 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-04-27 10:13:38 +0000 |
commit | 0ac3ea7554a97a8f9ef72f10efc25e2f8f917ec8 (patch) | |
tree | d02050300c57902612cbcc1ed93343f51ddde841 /sys/kern/kern_event.c | |
parent | fb5d6f62930fa92c52d63c3ef27054bb33b04031 (diff) |
Move FREF() inside fd_getfile().
ok visa@
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r-- | sys/kern/kern_event.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 0fbef3a4271..dd5cb18d748 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_event.c,v 1.87 2018/04/10 09:17:45 mpi Exp $ */ +/* $OpenBSD: kern_event.c,v 1.88 2018/04/27 10:13:37 mpi Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -481,7 +481,6 @@ sys_kevent(struct proc *p, void *v, register_t *retval) if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) return (EBADF); - FREF(fp); if (fp->f_type != DTYPE_KQUEUE) { error = EBADF; @@ -583,7 +582,6 @@ kqueue_register(struct kqueue *kq, struct kevent *kev, struct proc *p) return (EBADF); if ((fp = fd_getfile(fdp, kev->ident)) == NULL) return (EBADF); - FREF(fp); if (kev->ident < fdp->fd_knlistsize) { SLIST_FOREACH(kn, &fdp->fd_knlist[kev->ident], kn_link) { |