1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

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
This commit is contained in:
Rick Macklem 2011-06-22 21:10:12 +00:00
parent 1368987ae4
commit 7bb55def77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223441

View File

@ -733,6 +733,8 @@ newnfs_request(struct nfsrv_descript *nd, struct nfsmount *nmp,
while (NFSD_MONOSEC < waituntil)
(void) nfs_catnap(PZERO, 0, "nfstry");
trylater_delay *= 2;
m_freem(nd->nd_mrep);
nd->nd_mrep = NULL;
goto tryagain;
}