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
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) { if (vp->v_mount != tdvp->v_mount) {
VOP_ABORTOP(tdvp, cnp); VOP_ABORTOP(tdvp, cnp);
vput(tdvp);
return (EXDEV); return (EXDEV);
} }

View File

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