svn commit: r293185 - head/sys/dev/cxgbe/iw_cxgbe

Navdeep Parhar np at FreeBSD.org
Tue Jan 5 01:32:41 UTC 2016


Author: np
Date: Tue Jan  5 01:32:40 2016
New Revision: 293185
URL: https://svnweb.freebsd.org/changeset/base/293185

Log:
  iw_cxgbe: Shut down the socket but do not close the fd in case of error.
  The fd is closed later in this case.  This fixes a "SS_NOFDREF on enter"
  panic.
  
  Submitted by:	Krishnamraju Eraparaju @ Chelsio
  Reviewed by:	Steve Wise @ Open Grid Computing

Modified:
  head/sys/dev/cxgbe/iw_cxgbe/cm.c

Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c
==============================================================================
--- head/sys/dev/cxgbe/iw_cxgbe/cm.c	Mon Jan  4 22:32:37 2016	(r293184)
+++ head/sys/dev/cxgbe/iw_cxgbe/cm.c	Tue Jan  5 01:32:40 2016	(r293185)
@@ -474,7 +474,7 @@ process_conn_error(struct c4iw_ep *ep)
 	if (state != ABORTING) {
 
 		CTR2(KTR_IW_CXGBE, "%s:pce1 %p", __func__, ep);
-		close_socket(&ep->com, 1);
+		close_socket(&ep->com, 0);
 		state_set(&ep->com, DEAD);
 		c4iw_put_ep(&ep->com);
 	}


More information about the svn-src-head mailing list