mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fix for a vnode lock leak in nfs_create() in the event of an error.
Spotted by ups@.
This commit is contained in:
parent
38cc6e0a82
commit
4e99994cc9
1 changed files with 2 additions and 0 deletions
|
|
@ -1434,6 +1434,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…
Reference in a new issue