Fix leak in NAMEI zone caused by nfs server when VOP_RENAME fails.

Submitted by:	Padma Bhooma <pbhooma at panasas com>
Reviewed by:	bde
Approved by:	pjd (mentor)
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2006-10-26 12:41:53 +00:00
parent 1dcf308b1e
commit 1c99939f08

View File

@ -2532,8 +2532,8 @@ nfsrv_rename(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
tond.ni_dvp = NULL;
tond.ni_vp = NULL;
if (error) {
fromnd.ni_cnd.cn_flags &= ~HASBUF;
tond.ni_cnd.cn_flags &= ~HASBUF;
NDFREE(&fromnd, NDF_ONLY_PNBUF);
NDFREE(&tond, NDF_ONLY_PNBUF);
}
} else {
if (error == -1)