The branch main has been updated by tuexen:

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

commit 2f0656fb9ba2b962be7f545763fd8c55640ded00
Author:     Michael Tuexen <[email protected]>
AuthorDate: 2022-02-20 13:55:41 +0000
Commit:     Michael Tuexen <[email protected]>
CommitDate: 2022-02-20 13:55:41 +0000

    sctp: don't hold the assoc create lock longer than needed
    
    Reported by:    [email protected]
    MFC after:      3 days
---
 sys/netinet/sctp_output.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 3d81fb2b4288..86cf2ed75e90 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -12716,6 +12716,8 @@ sctp_lower_sosend(struct socket *so,
                } else {
                        SCTP_TCB_LOCK_ASSERT(stcb);
                        hold_tcblock = true;
+                       SCTP_ASOC_CREATE_UNLOCK(inp);
+                       create_lock_applied = false;
                }
                if (error) {
                        goto out_unlocked;

Reply via email to