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:
parent
1dcf308b1e
commit
1c99939f08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user