]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve the locking when sending user messages.
authorMichael Tuexen <tuexen@FreeBSD.org>
Mon, 22 Aug 2016 01:45:29 +0000 (01:45 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Mon, 22 Aug 2016 01:45:29 +0000 (01:45 +0000)
commit7fcbd928f8616c50eaded0e6d7651a5a93b3b13f
tree8b9c023a39e900ec454193e39bdcccfa988da636
parent066d6cbcefe502233468499de24bff905677d19b
Improve the locking when sending user messages.

First, keep a ref count on the stcb after looking it up, as
done in the other lookup cases.
Second, before looking again at sp, ensure that it is not
freed, because the assoc is about to be freed.

MFC after: 3 days
sys/netinet/sctp_output.c