Date: Sat, 6 Aug 2016 15:29:46 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r303798 - head/sys/netinet Message-ID: <201608061529.u76FTkhZ056479@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608061529.u76FTkhZ056479>