svn commit: r344741 - head/sys/kern
Gleb Smirnoff
glebius at FreeBSD.org
Sun Mar 3 18:57:49 UTC 2019
Author: glebius
Date: Sun Mar 3 18:57:48 2019
New Revision: 344741
URL: https://svnweb.freebsd.org/changeset/base/344741
Log:
Remove bogus assert that I added in r319722. It is a legitimate case
to call soabort() on a newborn socket created by sonewconn() in case
if further setup of PCB failed. Code in sofree() handles such socket
correctly.
Submitted by: jtl, rrs
MFC after: 3 weeks
Modified:
head/sys/kern/uipc_socket.c
Modified: head/sys/kern/uipc_socket.c
==============================================================================
--- head/sys/kern/uipc_socket.c Sun Mar 3 10:00:26 2019 (r344740)
+++ head/sys/kern/uipc_socket.c Sun Mar 3 18:57:48 2019 (r344741)
@@ -1174,7 +1174,6 @@ soabort(struct socket *so)
KASSERT(so->so_count == 0, ("soabort: so_count"));
KASSERT((so->so_state & SS_PROTOREF) == 0, ("soabort: SS_PROTOREF"));
KASSERT(so->so_state & SS_NOFDREF, ("soabort: !SS_NOFDREF"));
- KASSERT(so->so_qstate == SQ_NONE, ("soabort: !SQ_NONE"));
VNET_SO_ASSERT(so);
if (so->so_proto->pr_usrreqs->pru_abort != NULL)
More information about the svn-src-head
mailing list