mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Add vput() calls in two places in the experimental NFS client
that would be needed if, in the future, nfscl_loadattrcache() were to return an error. Currently nfscl_loadattrcache() never returns an error, so these cases never currently happen. MFC after: 2 weeks
This commit is contained in:
parent
78d8a60009
commit
ab42af2708
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220763
|
@ -1404,9 +1404,12 @@ nfs_mknodrpc(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
|
|||
(void) nfscl_loadattrcache(&dvp, &dnfsva, NULL, NULL, 0, 1);
|
||||
if (!error) {
|
||||
newvp = NFSTOV(np);
|
||||
if (attrflag)
|
||||
if (attrflag != 0) {
|
||||
error = nfscl_loadattrcache(&newvp, &nfsva, NULL, NULL,
|
||||
0, 1);
|
||||
if (error != 0)
|
||||
vput(newvp);
|
||||
}
|
||||
}
|
||||
if (!error) {
|
||||
if ((cnp->cn_flags & MAKEENTRY))
|
||||
|
@ -1523,7 +1526,7 @@ nfs_create(struct vop_create_args *ap)
|
|||
}
|
||||
if (error) {
|
||||
if (newvp != NULL) {
|
||||
vrele(newvp);
|
||||
vput(newvp);
|
||||
newvp = NULL;
|
||||
}
|
||||
if (NFS_ISV34(dvp) && (fmode & O_EXCL) &&
|
||||
|
|
Loading…
Reference in a new issue