Date: Fri, 16 Apr 2021 22:40:06 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 86046cf55f80 - main - tcp_respond(): fix assertion, should have been done in 08d9c920275. Message-ID: <202104162240.13GMe6oK016799@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=86046cf55f806c65e7191323e290333d32bacb70 commit 86046cf55f806c65e7191323e290333d32bacb70 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2021-04-16 22:19:26 +0000 Commit: Gleb Smirnoff <glebius@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 { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104162240.13GMe6oK016799>