Missing vput when cross-device link error is detected in nfs_link.

This commit is contained in:
Kirk McKusick 1998-09-29 23:29:48 +00:00
parent b6b74f2f4e
commit d25ad74791
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39793
2 changed files with 2 additions and 0 deletions

View File

@ -1704,6 +1704,7 @@ nfs_link(ap)
if (vp->v_mount != tdvp->v_mount) {
VOP_ABORTOP(tdvp, cnp);
vput(tdvp);
return (EXDEV);
}

View File

@ -1704,6 +1704,7 @@ nfs_link(ap)
if (vp->v_mount != tdvp->v_mount) {
VOP_ABORTOP(tdvp, cnp);
vput(tdvp);
return (EXDEV);
}