aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorJohn W. De Boskey <jwd@FreeBSD.org>2012-05-08 03:39:44 +0000
committerJohn W. De Boskey <jwd@FreeBSD.org>2012-05-08 03:39:44 +0000
commit3676a0d890609e3236fb6ffe6844fa733a9b6231 (patch)
tree99db5de2bd510036dd54a1cb047dfb4e96a064a4 /sys/fs
parent78de21c070b6c66600770e09ff0a0604a08d5144 (diff)
downloadsrc-3676a0d890609e3236fb6ffe6844fa733a9b6231.tar.gz
src-3676a0d890609e3236fb6ffe6844fa733a9b6231.zip
Use the common api helper routine instead of freeing the namei
buffer directly. Approved by: rmacklem (mentor) MFC after: 1 month
Notes
Notes: svn path=/head/; revision=235136
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nfsserver/nfs_nfsdport.c3
1 files changed, 1 insertions, 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;
}