MFC: Fix for a vnode lock leak in nfs_create() in the event of an error.
Spotted by ups@.
This commit is contained in:
parent
fc9639c0ea
commit
77c4a0dce1
@ -1353,6 +1353,8 @@ nfsmout:
|
||||
if (vap->va_atime.tv_sec == VNOVAL)
|
||||
vap->va_atime = vap->va_mtime;
|
||||
error = nfs_setattrrpc(newvp, vap, cnp->cn_cred, cnp->cn_thread);
|
||||
if (error)
|
||||
vput(newvp);
|
||||
}
|
||||
if (!error) {
|
||||
if (cnp->cn_flags & MAKEENTRY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user