Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2012 19:31:32 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r242836 - stable/9/sys/netinet
Message-ID:  <201211091931.qA9JVWGv041023@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Fri Nov  9 19:31:31 2012
New Revision: 242836
URL: http://svnweb.freebsd.org/changeset/base/242836

Log:
  MFC r242680:
  
  Fix possible spurious sbunlock in sctp_sorecvmsg.
  
  Approved by:	trasz (mentor)

Modified:
  stable/9/sys/netinet/sctputil.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctputil.c
==============================================================================
--- stable/9/sys/netinet/sctputil.c	Fri Nov  9 18:56:27 2012	(r242835)
+++ stable/9/sys/netinet/sctputil.c	Fri Nov  9 19:31:31 2012	(r242836)
@@ -5264,10 +5264,10 @@ sctp_sorecvmsg(struct socket *so,
 		    rwnd_req, block_allowed, so->so_rcv.sb_cc, uio->uio_resid);
 	}
 	error = sblock(&so->so_rcv, (block_allowed ? SBL_WAIT : 0));
-	sockbuf_lock = 1;
 	if (error) {
 		goto release_unlocked;
 	}
+	sockbuf_lock = 1;
 restart:
 
 



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