aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2026-04-12 21:45:40 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2026-04-12 21:45:40 +0000
commit151a1eab3b785129d279af601ed716eda74886a8 (patch)
treec1e8f0cb09490196ac88abeb72c796d23075b5d0
parent411c28b6caa4a55d89cc34d77b33141b78ced590 (diff)
tcp: fix !INVARIANTS build
-rw-r--r--sys/netinet/tcp_usrreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 277f8fa2af36..6a51068d0461 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -2586,11 +2586,10 @@ unhold:
static void
tcp_disconnect(struct tcpcb *tp)
{
- struct inpcb *inp = tptoinpcb(tp);
struct socket *so = tptosocket(tp);
NET_EPOCH_ASSERT();
- INP_WLOCK_ASSERT(inp);
+ INP_WLOCK_ASSERT(tptoinpcb(tp));
/*
* Neither tcp_close() nor tcp_drop() should return NULL, as the