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; } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"