From cf588e93fe6bb5d56dce60ab4e4bbba1d0b76f0c Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 31 Jan 2018 14:41:32 +0000 Subject: Use FREF() instead of rolling our own. ok deraadt@, bluhm@ --- sys/nfs/nfs_syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/nfs/nfs_syscalls.c') diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 0f98a30d39d..79305a41dd0 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.111 2017/09/01 15:05:31 mpi Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.112 2018/01/31 14:41:31 mpi Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -288,7 +288,7 @@ nfssvc_addsock(struct file *fp, struct mbuf *mynam) } slp->ns_so = so; slp->ns_nam = mynam; - fp->f_count++; + FREF(fp); slp->ns_fp = fp; so->so_upcallarg = (caddr_t)slp; so->so_upcall = nfsrv_rcv; -- cgit v1.2.3