MFC: Fix for a vnode lock leak in nfs_create() in the event of an error.

Spotted by ups@.
This commit is contained in:
mohans 2007-01-31 23:11:15 +00:00
parent fc9639c0ea
commit 77c4a0dce1

View File

@ -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)