mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
Fix the experimental NFS server so that it doesn't leak
a reference count on the directory when creating device special files. MFC after: 2 weeks
This commit is contained in:
parent
81f78d997d
commit
fa5ecdd3b9
1 changed files with 1 additions and 2 deletions
|
|
@ -857,8 +857,7 @@ nfsvno_mknod(struct nameidata *ndp, struct nfsvattr *nvap, struct ucred *cred,
|
|||
&ndp->ni_cnd, &nvap->na_vattr);
|
||||
vput(ndp->ni_dvp);
|
||||
nfsvno_relpathbuf(ndp);
|
||||
if (error)
|
||||
vrele(ndp->ni_startdir);
|
||||
vrele(ndp->ni_startdir);
|
||||
/*
|
||||
* Since VOP_MKNOD returns the ni_vp, I can't
|
||||
* see any reason to do the lookup.
|
||||
|
|
|
|||
Loading…
Reference in a new issue