Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 May 2012 03:39:45 +0000 (UTC)
From:      "John W. De Boskey" <jwd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r235136 - head/sys/fs/nfsserver
Message-ID:  <201205080339.q483djBV094491@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205080339.q483djBV094491>