summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-03-21 21:49:07 +0000
committerrwatson <rwatson@FreeBSD.org>2009-03-21 21:49:07 +0000
commit2f4a716c796f616c056ea47fc8cf75b11e297f03 (patch)
tree7fd4279168e92f118b0a711adc49c3c8843938e2 /sys/nfsclient
parent259f53ade964471e8a2c30f3d07bc801f6f86d73 (diff)
downloadFreeBSD-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.c11
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);
OpenPOWER on IntegriCloud