svn commit: r242836 - stable/9/sys/netinet

Mateusz Guzik mjg at FreeBSD.org
Fri Nov 9 19:31:32 UTC 2012


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:
 
 


More information about the svn-src-stable-9 mailing list