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:
rwatson 2005-01-24 22:56:09 +00:00
parent cfdb85a2f9
commit c07ace7f7b

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));