Searched hist:138238 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10-stable/sys/netgraph/bluetooth/socket/
H A Dng_btsocket.cdiff 138238 Tue Nov 30 20:28:50 MST 2004 mlaier Move ng_socket and ng_btsocket initialization to SI_SUB_PROTO_DOMAIN as they
call net_add_domain(). Calling this function too early (or late) breaks
assertations about the global domains list.
Actually it should be forbidden to call net_add_domain() outside of
SI_SUB_PROTO_DOMAIN completely as there are many places where we traverse
the domains list unprotected, but for now we allow late calls (mostly to
support netgraph). In order to really fix this we have to lock the domains
list in all places or find another way to ensure that we can safely walk the
list while another thread might be adding a new domain.

Spotted by: se
Reviewed by: julian, glebius
PR: kern/73321 (partly)

Completed in 53 milliseconds