In nfs_request(), always exit using the nfsmout label once we're

definitely doing an NFSv2 or NFSv3 RPC, rather than sometimes doing
so and sometimes not.  This makes it easier to add a DTrace return
probe at a single point in the function.

MFC after:	1 week
This commit is contained in:
Robert Watson 2009-03-21 21:49:07 +00:00
parent e744b7e395
commit 06bd99086d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190220

View File

@ -493,11 +493,8 @@ nfs_request(struct vnode *vp, struct mbuf *mreq, int procnum,
error = EACCES;
}
md = mrep;
if (error) {
m_freem(mreq);
AUTH_DESTROY(auth);
return (error);
}
if (error)
goto nfsmout;
KASSERT(mrep != NULL, ("mrep shouldn't be NULL if no error\n"));
@ -535,9 +532,7 @@ nfs_request(struct vnode *vp, struct mbuf *mreq, int procnum,
error |= NFSERR_RETERR;
} else
m_freem(mrep);
m_freem(mreq);
AUTH_DESTROY(auth);
return (error);
goto nfsmout;
}
m_freem(mreq);