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:
Michael Tuexen 2022-02-20 14:55:41 +01:00
parent 7504f32c2e
commit 2f0656fb9b

View file

@ -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;