diff options
author | rrs <rrs@FreeBSD.org> | 2010-06-05 21:20:28 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2010-06-05 21:20:28 +0000 |
commit | 24eae4311a1ead2984d05424fe13d91fb649e9aa (patch) | |
tree | 6a529f62c7c935e3efe6f43533776636d55a80ce /sys/netinet/sctp_pcb.h | |
parent | 7d3c46ab4c339f80c43882895ddd4543a6aec864 (diff) | |
download | FreeBSD-src-24eae4311a1ead2984d05424fe13d91fb649e9aa.zip FreeBSD-src-24eae4311a1ead2984d05424fe13d91fb649e9aa.tar.gz |
This does two changes:
1) Makes it so that the INVARIANT function validate nolocks is
available anywhere.
2) Fixes a BUG where a close has been done on a collision socket
and the cookie processing would return leaving a lock held.
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_pcb.h')
-rw-r--r-- | sys/netinet/sctp_pcb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 6f657e8..318b012 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -621,5 +621,11 @@ sctp_initiate_iterator(inp_func inpf, struct sctp_inpcb *, uint8_t co_off); +#ifdef INVARIANTS +void + sctp_validate_no_locks(struct sctp_inpcb *inp); + +#endif + #endif /* _KERNEL */ #endif /* !__sctp_pcb_h__ */ |