From a5fcc81c4dff36113c30913e2e761adc1e122624 Mon Sep 17 00:00:00 2001 From: mpi Date: Wed, 31 Jan 2018 14:41:31 +0000 Subject: [PATCH] Use FREF() instead of rolling our own. ok deraadt@, bluhm@ --- sys/nfs/nfs_syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1