Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2012 23:04:23 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242680 - head/sys/netinet
Message-ID:  <201211062304.qA6N4Nhi079678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Tue Nov  6 23:04:23 2012
New Revision: 242680
URL: http://svnweb.freebsd.org/changeset/base/242680

Log:
  Fix possible spurious sbunlock in sctp_sorecvmsg.
  
  Reviewed by:	tuexen
  Approved by:	trasz (mentor)
  MFC after:	3 days

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Tue Nov  6 22:46:11 2012	(r242679)
+++ head/sys/netinet/sctputil.c	Tue Nov  6 23:04:23 2012	(r242680)
@@ -5197,10 +5197,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?201211062304.qA6N4Nhi079678>