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:
rmacklem 2011-06-22 21:10:12 +00:00
parent 83fca1d193
commit da38204805

View File

@ -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;
}