diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-03-21 21:49:07 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-03-21 21:49:07 +0000 |
commit | 2f4a716c796f616c056ea47fc8cf75b11e297f03 (patch) | |
tree | 7fd4279168e92f118b0a711adc49c3c8843938e2 /sys/nfsclient | |
parent | 259f53ade964471e8a2c30f3d07bc801f6f86d73 (diff) | |
download | FreeBSD-src-2f4a716c796f616c056ea47fc8cf75b11e297f03.zip FreeBSD-src-2f4a716c796f616c056ea47fc8cf75b11e297f03.tar.gz |
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
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_krpc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/nfsclient/nfs_krpc.c b/sys/nfsclient/nfs_krpc.c index 8a5f805..ce6a87b 100644 --- a/sys/nfsclient/nfs_krpc.c +++ b/sys/nfsclient/nfs_krpc.c @@ -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); |