svn commit: r206063 - head/sys/fs/nfsserver
Rick Macklem
rmacklem at FreeBSD.org
Fri Apr 2 02:19:29 UTC 2010
Author: rmacklem
Date: Fri Apr 2 02:19:28 2010
New Revision: 206063
URL: http://svn.freebsd.org/changeset/base/206063
Log:
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
Modified:
head/sys/fs/nfsserver/nfs_nfsdport.c
Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c Fri Apr 2 02:17:15 2010 (r206062)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c Fri Apr 2 02:19:28 2010 (r206063)
@@ -869,6 +869,7 @@ nfsvno_mkdir(struct nameidata *ndp, stru
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,
More information about the svn-src-all
mailing list