1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

Acquire the raw_cb mutex around LIST_REMOVE() of a raw socket control

block from the global raw socket list.

Submitted by:	Roselyn Lee <rosel at verniernetworks dot com>
MFC after:	1 week
This commit is contained in:
Robert Watson 2005-01-24 22:56:09 +00:00
parent ce12d37e7b
commit 31c436a2a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140775

View File

@ -102,7 +102,9 @@ raw_detach(rp)
SOCK_LOCK(so);
so->so_pcb = 0;
sotryfree(so);
mtx_lock(&rawcb_mtx);
LIST_REMOVE(rp, list);
mtx_unlock(&rawcb_mtx);
#ifdef notdef
if (rp->rcb_laddr)
m_freem(dtom(rp->rcb_laddr));