Fix a regression from the last revision - don't edit the ns_rec list while

not holding the lock.
This commit is contained in:
Doug Rabson 2008-03-19 12:33:25 +00:00
parent 88f25023dc
commit 0d8563d31e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177386

View File

@ -655,9 +655,11 @@ nfsrv_getstream(struct nfssvc_sock *slp, int waitflag)
nfs_realign(&slp->ns_frag, 10 * NFSX_UNSIGNED);
rec->nr_address = NULL;
rec->nr_packet = slp->ns_frag;
NFSD_LOCK();
STAILQ_INSERT_TAIL(&slp->ns_rec, rec, nr_link);
} else {
NFSD_LOCK();
}
NFSD_LOCK();
if (!rec) {
m_freem(slp->ns_frag);
}