git: be578b67b5a5 - main - tcp_twcheck(): use correct unlock macro.

Gleb Smirnoff glebius at FreeBSD.org
Thu May 6 17:22:45 UTC 2021


The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=be578b67b5a5bedbbec61c7164875b6b1e1b8fff

commit be578b67b5a5bedbbec61c7164875b6b1e1b8fff
Author:     Gleb Smirnoff <glebius at FreeBSD.org>
AuthorDate: 2021-05-06 17:19:21 +0000
Commit:     Gleb Smirnoff <glebius at FreeBSD.org>
CommitDate: 2021-05-06 17:19:21 +0000

    tcp_twcheck(): use correct unlock macro.
    
    This crippled in due to conflict between two last commits 1db08fbe3ff
    and 9e644c23000.
    
    Submitted by:   Peter Lei
---
 sys/netinet/tcp_timewait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 695ec4413ac9..5d4de222b802 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -478,7 +478,7 @@ tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
 			tcp_respond(NULL, mtod(m, void *), th, m,
 			    th->th_seq+tlen, (tcp_seq)0, TH_RST|TH_ACK);
 		}
-		INP_WUNLOCK(inp);
+		INP_UNLOCK(inp);
 		return (0);
 	}
 


More information about the dev-commits-src-main mailing list