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

Navdeep Parhar np at FreeBSD.org
Thu Nov 13 03:59:37 UTC 2014


Author: np
Date: Thu Nov 13 03:59:36 2014
New Revision: 274461
URL: https://svnweb.freebsd.org/changeset/base/274461

Log:
  iw_cxgbe: don't forget to close the socket in c4iw_connect if soconnect
  fails.
  
  Submitted by:	hariprasad at chelsio dot com

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	Thu Nov 13 00:46:53 2014	(r274460)
+++ head/sys/dev/cxgbe/iw_cxgbe/cm.c	Thu Nov 13 03:59:36 2014	(r274461)
@@ -2114,9 +2114,11 @@ int c4iw_connect(struct iw_cm_id *cm_id,
 		ep->com.thread);
 
 	if (!err) {
-
 		CTR2(KTR_IW_CXGBE, "%s:cca %p", __func__, ep);
 		goto out;
+	} else {
+		close_socket(&ep->com, 0);
+		goto fail2;
 	}
 
 fail3:


More information about the svn-src-all mailing list