diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2025-08-06 10:24:54 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2025-09-05 18:52:00 +0000 |
| commit | 2871bc271ec17125dce0d35b8bf76f679d99d18d (patch) | |
| tree | 93ae395b8c6bdb6db93b442c593d2f216847b24d | |
| parent | 163e06ec64eacedacacbbd99fa6088a9968ed337 (diff) | |
rack, bbr: minor cleanup
No functional change intended.
Reviewed by: Nick Banks
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51734
(cherry picked from commit 717bbade24857fd52724e9bb5ffdcfa0310f0a48)
| -rw-r--r-- | sys/netinet/tcp_stacks/rack_bbr_common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/tcp_stacks/rack_bbr_common.c b/sys/netinet/tcp_stacks/rack_bbr_common.c index e5ccc7ebb236..d39ededc99d1 100644 --- a/sys/netinet/tcp_stacks/rack_bbr_common.c +++ b/sys/netinet/tcp_stacks/rack_bbr_common.c @@ -509,11 +509,9 @@ void ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t rstreason, int32_t tlen) { - if (tp != NULL) { - tcp_dropwithreset(m, th, tp, tlen, rstreason); + tcp_dropwithreset(m, th, tp, tlen, rstreason); + if (tp != NULL) INP_WUNLOCK(tptoinpcb(tp)); - } else - tcp_dropwithreset(m, th, NULL, tlen, rstreason); } void |
