svn commit: r206694 - stable/8/sys/fs/nfsserver

Rick Macklem rmacklem at FreeBSD.org
Fri Apr 16 02:16:59 UTC 2010


Author: rmacklem
Date: Fri Apr 16 02:16:58 2010
New Revision: 206694
URL: http://svn.freebsd.org/changeset/base/206694

Log:
  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.

Modified:
  stable/8/sys/fs/nfsserver/nfs_nfsdport.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- stable/8/sys/fs/nfsserver/nfs_nfsdport.c	Fri Apr 16 01:54:47 2010	(r206693)
+++ stable/8/sys/fs/nfsserver/nfs_nfsdport.c	Fri Apr 16 02:16:58 2010	(r206694)
@@ -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