Use the common api helper routine instead of freeing the namei

buffer directly.

Approved by:	rmacklem (mentor)
MFC after:	1 month
This commit is contained in:
John W. De Boskey 2012-05-08 03:39:44 +00:00
parent 78de21c070
commit 3676a0d890

View File

@ -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;
}