Fix for a crash (from nfs_lookup() in an error case).
Submitted by: Mohan Srinivasan
This commit is contained in:
parent
acd58322c7
commit
9c31df40bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152019
@ -890,7 +890,7 @@ nfs_lookup(struct vop_lookup_args *ap)
|
||||
nfsmout:
|
||||
if (error) {
|
||||
if (newvp != NULLVP) {
|
||||
vrele(newvp);
|
||||
vput(newvp);
|
||||
*vpp = NULLVP;
|
||||
}
|
||||
if ((cnp->cn_nameiop == CREATE || cnp->cn_nameiop == RENAME) &&
|
||||
|
Loading…
Reference in New Issue
Block a user