mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
sctp: avoid locking an already locked mutex
Reported by: syzbot+f048680690f2e8d7ddad@syzkaller.appspotmail.com Reported by: syzbot+0725c712ba89d123c2e9@syzkaller.appspotmail.com MFC after: 1 week
This commit is contained in:
parent
f3aa0098a8
commit
171633765c
@ -1387,6 +1387,7 @@ sctp_audit_stream_queues_for_size(struct sctp_inpcb *inp, struct sctp_tcb *stcb)
|
||||
SCTP_PRINTF("Hmm, stream queue cnt at %d I counted %d in stream out wheel\n",
|
||||
stcb->asoc.stream_queue_cnt, chks_in_queue);
|
||||
}
|
||||
SCTP_TCB_SEND_UNLOCK(stcb);
|
||||
if (chks_in_queue) {
|
||||
/* call the output queue function */
|
||||
sctp_chunk_output(inp, stcb, SCTP_OUTPUT_FROM_T3, SCTP_SO_NOT_LOCKED);
|
||||
@ -1406,7 +1407,6 @@ sctp_audit_stream_queues_for_size(struct sctp_inpcb *inp, struct sctp_tcb *stcb)
|
||||
(u_long)stcb->asoc.total_output_queue_size);
|
||||
stcb->asoc.total_output_queue_size = 0;
|
||||
}
|
||||
SCTP_TCB_SEND_UNLOCK(stcb);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user