svn commit: r235136 - head/sys/fs/nfsserver

John W. De Boskey jwd at FreeBSD.org
Tue May 8 03:39:45 UTC 2012


Author: jwd
Date: Tue May  8 03:39:44 2012
New Revision: 235136
URL: http://svn.freebsd.org/changeset/base/235136

Log:
  Use the common api helper routine instead of freeing the namei
  buffer directly.
  
  Approved by:	rmacklem (mentor)
  MFC after:	1 month

Modified:
  head/sys/fs/nfsserver/nfs_nfsdport.c

Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c	Mon May  7 19:17:09 2012	(r235135)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c	Tue May  8 03:39:44 2012	(r235136)
@@ -505,11 +505,10 @@ nfsvno_namei(struct nfsrv_descript *nd, 
 
 out:
 	if (error) {
-		uma_zfree(namei_zone, cnp->cn_pnbuf);
+		nfsvno_relpathbuf(ndp);
 		ndp->ni_vp = NULL;
 		ndp->ni_dvp = NULL;
 		ndp->ni_startdir = NULL;
-		cnp->cn_flags &= ~HASBUF;
 	} else if ((ndp->ni_cnd.cn_flags & (WANTPARENT|LOCKPARENT)) == 0) {
 		ndp->ni_dvp = NULL;
 	}


More information about the svn-src-all mailing list