From 3676a0d890609e3236fb6ffe6844fa733a9b6231 Mon Sep 17 00:00:00 2001 From: "John W. De Boskey" Date: Tue, 8 May 2012 03:39:44 +0000 Subject: [PATCH] Use the common api helper routine instead of freeing the namei buffer directly. Approved by: rmacklem (mentor) MFC after: 1 month --- sys/fs/nfsserver/nfs_nfsdport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/fs/nfsserver/nfs_nfsdport.c b/sys/fs/nfsserver/nfs_nfsdport.c index 009ea000ae8a..93c7af506795 100644 --- a/sys/fs/nfsserver/nfs_nfsdport.c +++ b/sys/fs/nfsserver/nfs_nfsdport.c @@ -505,11 +505,10 @@ nfsvno_namei(struct nfsrv_descript *nd, struct nameidata *ndp, 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; }