artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f43d8
)
Use FREF() instead of rolling our own.
author
mpi
<mpi@openbsd.org>
Wed, 31 Jan 2018 14:41:31 +0000
(14:41 +0000)
committer
mpi
<mpi@openbsd.org>
Wed, 31 Jan 2018 14:41:31 +0000
(14:41 +0000)
ok deraadt@, bluhm@
sys/nfs/nfs_syscalls.c
patch
|
blob
|
history
diff --git
a/sys/nfs/nfs_syscalls.c
b/sys/nfs/nfs_syscalls.c
index
0f98a30
..
79305a4
100644
(file)
--- a/
sys/nfs/nfs_syscalls.c
+++ b/
sys/nfs/nfs_syscalls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nfs_syscalls.c,v 1.11
1 2017/09/01 15:05
:31 mpi Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.11
2 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;