summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2007-04-04 18:30:16 +0000
committerandre <andre@FreeBSD.org>2007-04-04 18:30:16 +0000
commit82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a (patch)
tree1d4432978d2e00193184fb3fccddc60f806f7c99 /sys/netinet/tcp_input.c
parent32bf13d188a94af41934893197c8efe4486d9b15 (diff)
downloadFreeBSD-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.c3
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;
OpenPOWER on IntegriCloud