diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2011-06-22 21:10:12 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2011-06-22 21:10:12 +0000 |
commit | 7bb55def7731dd64585a6677bacca207c2a8c701 (patch) | |
tree | 1de339d8a3477417580a1064fd97800577b3157c /sys | |
parent | 1368987ae424617c7c314315a5e1b3c222773868 (diff) | |
download | src-7bb55def7731dd64585a6677bacca207c2a8c701.tar.gz src-7bb55def7731dd64585a6677bacca207c2a8c701.zip |
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
Notes
Notes:
svn path=/head/; revision=223441
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/nfs/nfs_commonkrpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfs_commonkrpc.c b/sys/fs/nfs/nfs_commonkrpc.c index c34ea87a0e36..f658ac8d3cb5 100644 --- a/sys/fs/nfs/nfs_commonkrpc.c +++ b/sys/fs/nfs/nfs_commonkrpc.c @@ -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; } |