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:
parent
78de21c070
commit
3676a0d890
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user