MFC: r206063
For the experimental NFS server, add a call to free the lookup path buffer for one case where it was missing when doing mkdir. This could have conceivably resulted in a leak of a buffer, but a leak was never observed during testing, so I suspect it would have occurred rarely, if ever, in practice.
This commit is contained in:
parent
e83c1c9d1e
commit
4e76f29635
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=206694
@ -869,6 +869,7 @@ nfsvno_mkdir(struct nameidata *ndp, struct nfsvattr *nvap, uid_t saved_uid,
|
||||
else
|
||||
vput(ndp->ni_dvp);
|
||||
vrele(ndp->ni_vp);
|
||||
nfsvno_relpathbuf(ndp);
|
||||
return (EEXIST);
|
||||
}
|
||||
error = VOP_MKDIR(ndp->ni_dvp, &ndp->ni_vp, &ndp->ni_cnd,
|
||||
|
Loading…
Reference in New Issue
Block a user