mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
sctp: don't hold the assoc create lock longer than needed
Reported by: syzbot+c738e3df67cf425c49a2@syzkaller.appspotmail.com MFC after: 3 days
This commit is contained in:
parent
7504f32c2e
commit
2f0656fb9b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue