]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move lock assertions to top of in6_pcbladdr(): we still want them to run
authorRobert Watson <rwatson@FreeBSD.org>
Tue, 25 Apr 2006 12:09:58 +0000 (12:09 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Tue, 25 Apr 2006 12:09:58 +0000 (12:09 +0000)
commit8deea4a8f3e24373706aa85e9f09c19acd8e9454
tree011200dff73d659a24e0ad1366f3cbf766fe9876
parent102ea03373d20f59d1933a3c06e255575c8e8b8b
Move lock assertions to top of in6_pcbladdr(): we still want them to run
even if we're going to return an argument-based error.

Assert pcbinfo lock in in6_pcblookup_local(), in6_pcblookup_hash(), since
they walk pcbinfo inpcb lists.

Assert inpcb and pcbinfo locks in in6_pcbsetport(), since
port reservations are changing.

MFC after: 3 months
sys/netinet6/in6_pcb.c
sys/netinet6/in6_src.c