Missing vput when cross-device link error is detected in nfs_link.
This commit is contained in:
parent
b6b74f2f4e
commit
d25ad74791
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39793
@ -1704,6 +1704,7 @@ nfs_link(ap)
|
||||
|
||||
if (vp->v_mount != tdvp->v_mount) {
|
||||
VOP_ABORTOP(tdvp, cnp);
|
||||
vput(tdvp);
|
||||
return (EXDEV);
|
||||
}
|
||||
|
||||
|
@ -1704,6 +1704,7 @@ nfs_link(ap)
|
||||
|
||||
if (vp->v_mount != tdvp->v_mount) {
|
||||
VOP_ABORTOP(tdvp, cnp);
|
||||
vput(tdvp);
|
||||
return (EXDEV);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user