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:
parent
cfdb85a2f9
commit
c07ace7f7b
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user