summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_syscalls.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-01-31 14:41:32 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-01-31 14:41:32 +0000
commitcf588e93fe6bb5d56dce60ab4e4bbba1d0b76f0c (patch)
tree6ae5c2a23c813c1fb0d1d428cb2d8fc57fe6fc67 /sys/nfs/nfs_syscalls.c
parent6e981f98eb06383f950393672cd16b9deefe9656 (diff)
Use FREF() instead of rolling our own.
ok deraadt@, bluhm@
Diffstat (limited to 'sys/nfs/nfs_syscalls.c')
-rw-r--r--sys/nfs/nfs_syscalls.c4
1 files 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;