svn commit: r349811 - stable/11/sys/kern
Mark Johnston
markj at FreeBSD.org
Sun Jul 7 17:43:46 UTC 2019
Author: markj
Date: Sun Jul 7 17:43:45 2019
New Revision: 349811
URL: https://svnweb.freebsd.org/changeset/base/349811
Log:
MFC r349599:
Fix handling of errors from sblock() in soreceive_stream().
PR: 238789
Modified:
stable/11/sys/kern/uipc_socket.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/uipc_socket.c
==============================================================================
--- stable/11/sys/kern/uipc_socket.c Sun Jul 7 17:43:15 2019 (r349810)
+++ stable/11/sys/kern/uipc_socket.c Sun Jul 7 17:43:45 2019 (r349811)
@@ -1969,7 +1969,7 @@ soreceive_stream(struct socket *so, struct sockaddr **
/* Prevent other readers from entering the socket. */
error = sblock(sb, SBLOCKWAIT(flags));
if (error)
- goto out;
+ return (error);
SOCKBUF_LOCK(sb);
/* Easy one, no space to copyout anything. */
More information about the svn-src-all
mailing list