git: 86046cf55f80 - main - tcp_respond(): fix assertion, should have been done in 08d9c920275.
Gleb Smirnoff
glebius at FreeBSD.org
Fri Apr 16 22:40:06 UTC 2021
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=86046cf55f806c65e7191323e290333d32bacb70
commit 86046cf55f806c65e7191323e290333d32bacb70
Author: Gleb Smirnoff <glebius at FreeBSD.org>
AuthorDate: 2021-04-16 22:19:26 +0000
Commit: Gleb Smirnoff <glebius at FreeBSD.org>
CommitDate: 2021-04-16 22:39:51 +0000
tcp_respond(): fix assertion, should have been done in 08d9c920275.
---
sys/netinet/tcp_subr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 05af0076b23a..e973555efbcb 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1612,7 +1612,7 @@ tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
* Packet is associated with a socket, so allow the
* label of the response to reflect the socket label.
*/
- INP_WLOCK_ASSERT(inp);
+ INP_LOCK_ASSERT(inp);
mac_inpcb_create_mbuf(inp, m);
} else {
/*
More information about the dev-commits-src-all
mailing list