diff options
author | andre <andre@FreeBSD.org> | 2007-04-04 18:30:16 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2007-04-04 18:30:16 +0000 |
commit | 82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a (patch) | |
tree | 1d4432978d2e00193184fb3fccddc60f806f7c99 /sys/netinet/tcp_input.c | |
parent | 32bf13d188a94af41934893197c8efe4486d9b15 (diff) | |
download | FreeBSD-src-82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a.zip FreeBSD-src-82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a.tar.gz |
Add INP_INFO_UNLOCK_ASSERT() and use it in tcp_input(). Also add some
further INP_INFO_WLOCK_ASSERT() while there.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 326241f..b8fc45f 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -997,13 +997,16 @@ findpcb: return; dropwithreset: + INP_INFO_WLOCK_ASSERT(&tcbinfo); tcp_dropwithreset(m, th, tp, tlen, rstreason); m = NULL; /* mbuf chain got consumed. */ dropunlock: + INP_INFO_WLOCK_ASSERT(&tcbinfo); if (tp != NULL) INP_UNLOCK(inp); INP_INFO_WUNLOCK(&tcbinfo); drop: + INP_INFO_UNLOCK_ASSERT(&tcbinfo); if (m != NULL) m_freem(m); return; |