svn commit: r223441 - head/sys/fs/nfs
Rick Macklem
rmacklem at FreeBSD.org
Wed Jun 22 21:10:12 UTC 2011
Author: rmacklem
Date: Wed Jun 22 21:10:12 2011
New Revision: 223441
URL: http://svn.freebsd.org/changeset/base/223441
Log:
Plug an mbuf leak in the new NFS client that occurred when a
server replied NFS3ERR_JUKEBOX/NFS4ERR_DELAY to an rpc.
This affected both NFSv3 and NFSv4. Found during testing
at the recent NFSv4 interoperability Bakeathon.
MFC after: 2 weeks
Modified:
head/sys/fs/nfs/nfs_commonkrpc.c
Modified: head/sys/fs/nfs/nfs_commonkrpc.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonkrpc.c Wed Jun 22 21:04:13 2011 (r223440)
+++ head/sys/fs/nfs/nfs_commonkrpc.c Wed Jun 22 21:10:12 2011 (r223441)
@@ -733,6 +733,8 @@ tryagain:
while (NFSD_MONOSEC < waituntil)
(void) nfs_catnap(PZERO, 0, "nfstry");
trylater_delay *= 2;
+ m_freem(nd->nd_mrep);
+ nd->nd_mrep = NULL;
goto tryagain;
}
More information about the svn-src-head
mailing list