Skip to content

Commit bada381

Browse files
Rick MacklemRick Macklem
Rick Macklem
authored and
Rick Macklem
committed
nfs_clvnops.c: Add an initialization mistakenly removed
Commit e4c7b2b mistakenly removed an initialization of "newvp", which could result in crashes. This patch puts the initialization back in. Reported by: cy Tested by: cy Fixes: e4c7b2b ("nfsv4: Add support to NFSv4 for named attributes")
1 parent a8b9eea commit bada381

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sys/fs/nfsclient/nfs_clvnops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,7 @@ nfs_lookup(struct vop_lookup_args *ap)
14211421
NFSUNLOCKMNT(nmp);
14221422
#endif
14231423

1424+
newvp = NULLVP;
14241425
NFSINCRGLOBAL(nfsstatsv1.lookupcache_misses);
14251426
nanouptime(&ts);
14261427
error = nfsrpc_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,

0 commit comments

Comments
 (0)