summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorjwd <jwd@FreeBSD.org>2012-05-08 03:39:44 +0000
committerjwd <jwd@FreeBSD.org>2012-05-08 03:39:44 +0000
commitf638b8eae1518f5b1112845836197ea71538e2c0 (patch)
tree99db5de2bd510036dd54a1cb047dfb4e96a064a4 /sys/fs
parent0803e21ea9f82f975c1f07f43b4e712e8454cd35 (diff)
downloadFreeBSD-src-f638b8eae1518f5b1112845836197ea71538e2c0.zip
FreeBSD-src-f638b8eae1518f5b1112845836197ea71538e2c0.tar.gz
Use the common api helper routine instead of freeing the namei
buffer directly. Approved by: rmacklem (mentor) MFC after: 1 month
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 009ea00..93c7af5 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;
}
OpenPOWER on IntegriCloud