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:
parent
e744b7e395
commit
06bd99086d
@ -493,11 +493,8 @@ tryagain:
|
||||
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 @@ tryagain:
|
||||
error |= NFSERR_RETERR;
|
||||
} else
|
||||
m_freem(mrep);
|
||||
m_freem(mreq);
|
||||
AUTH_DESTROY(auth);
|
||||
return (error);
|
||||
goto nfsmout;
|
||||
}
|
||||
|
||||
m_freem(mreq);
|
||||
|
Loading…
x
Reference in New Issue
Block a user