Fix so we call socantrcvmore_locked so we

don't see a race where we unlock to call
the non-locked version and have the socket
go away.

MFC after:	1 week
This commit is contained in:
Randall Stewart 2010-06-07 04:01:38 +00:00
parent f3d893fcde
commit 9ed1e280f6

View File

@ -4675,8 +4675,8 @@ sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfre
SS_ISCONFIRMING |
SS_ISCONNECTED);
}
socantrcvmore_locked(so);
SOCK_UNLOCK(so);
socantrcvmore(so);
sctp_sowwakeup(inp, so);
sctp_sorwakeup(inp, so);
SCTP_SOWAKEUP(so);