From bada3811884cb22d088c8b8e4dbc39227682ce48 Mon Sep 17 00:00:00 2001 From: Rick Macklem Date: Sat, 24 May 2025 16:23:52 -0700 Subject: [PATCH] nfs_clvnops.c: Add an initialization mistakenly removed Commit e4c7b2b6053f 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: e4c7b2b6053f ("nfsv4: Add support to NFSv4 for named attributes") --- sys/fs/nfsclient/nfs_clvnops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c index 20603d37690..c2185992f99 100644 --- a/sys/fs/nfsclient/nfs_clvnops.c +++ b/sys/fs/nfsclient/nfs_clvnops.c @@ -1421,6 +1421,7 @@ nfs_lookup(struct vop_lookup_args *ap) NFSUNLOCKMNT(nmp); #endif + newvp = NULLVP; NFSINCRGLOBAL(nfsstatsv1.lookupcache_misses); nanouptime(&ts); error = nfsrpc_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,