The desired lock here is socket buffer, not socket.
Right now they match, but won't in future.
This commit is contained in:
parent
8d40bada3e
commit
12d8a8e7a3
@ -4856,7 +4856,7 @@ sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfre
|
||||
inp->sctp_flags &= ~SCTP_PCB_FLAGS_CONNECTED;
|
||||
inp->sctp_flags |= SCTP_PCB_FLAGS_WAS_CONNECTED;
|
||||
if (so) {
|
||||
SOCK_LOCK(so);
|
||||
SOCKBUF_LOCK(&so->so_rcv);
|
||||
if (so->so_rcv.sb_cc == 0) {
|
||||
so->so_state &= ~(SS_ISCONNECTING |
|
||||
SS_ISDISCONNECTING |
|
||||
|
Loading…
x
Reference in New Issue
Block a user