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. MFC after: 2 weeks
This commit is contained in:
parent
f61786cb60
commit
15b28cb82d
@ -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