Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2018 17:40:11 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332186 - stable/11/sys/netinet6
Message-ID:  <201804071740.w37HeBA9099490@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sat Apr  7 17:40:11 2018
New Revision: 332186
URL: https://svnweb.freebsd.org/changeset/base/332186

Log:
  MFC r323377:
  
  Fix a locking issue found by Coverity scanning the usrsctp library.

Modified:
  stable/11/sys/netinet6/sctp6_usrreq.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet6/sctp6_usrreq.c
==============================================================================
--- stable/11/sys/netinet6/sctp6_usrreq.c	Sat Apr  7 17:38:38 2018	(r332185)
+++ stable/11/sys/netinet6/sctp6_usrreq.c	Sat Apr  7 17:40:11 2018	(r332186)
@@ -879,7 +879,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr
 	if (inp->sctp_flags & SCTP_PCB_FLAGS_CONNECTED) {
 		stcb = LIST_FIRST(&inp->sctp_asoc_list);
 		if (stcb) {
-			SCTP_TCB_UNLOCK(stcb);
+			SCTP_TCB_LOCK(stcb);
 		}
 		SCTP_INP_RUNLOCK(inp);
 	} else {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804071740.w37HeBA9099490>