svn commit: r303798 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Aug 6 15:29:47 UTC 2016
Author: tuexen
Date: Sat Aug 6 15:29:46 2016
New Revision: 303798
URL: https://svnweb.freebsd.org/changeset/base/303798
Log:
Don't modify a structure without holding a reference count on it.
MFC after: 3 days
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Sat Aug 6 15:10:14 2016 (r303797)
+++ head/sys/netinet/sctputil.c Sat Aug 6 15:29:46 2016 (r303798)
@@ -6098,9 +6098,9 @@ out:
goto stage_left;
#endif
}
- atomic_add_int(&stcb->asoc.refcnt, -1);
/* Save the value back for next time */
stcb->freed_by_sorcv_sincelast = freed_so_far;
+ atomic_add_int(&stcb->asoc.refcnt, -1);
}
if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_RECV_RWND_LOGGING_ENABLE) {
if (stcb) {
More information about the svn-src-head
mailing list