mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Initialize vfslocked to 0 before nfsm_srvmtofh() so that the variable is
not used uninitialized in 'nfsmout' if nfsm_srvmtofh() gets an internal error. CID: 1766 Found by: Coverity Prevent (tm)
This commit is contained in:
parent
ff75233a7a
commit
cad603e388
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167899
@ -4051,6 +4051,7 @@ nfsrv_fsinfo(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
|
||||
if (!v3)
|
||||
panic("nfsrv_fsinfo: v3 proc called on a v2 connection");
|
||||
fhp = &nfh.fh_generic;
|
||||
vfslocked = 0;
|
||||
nfsm_srvmtofh(fhp);
|
||||
error = nfsrv_fhtovp(fhp, 1, &vp, &vfslocked, cred, slp,
|
||||
nam, &rdonly, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user