Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Mar 2017 01:38:17 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315920 - head/sys/dev/cxgbe/iw_cxgbe
Message-ID:  <201703250138.v2P1cHPK009510@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sat Mar 25 01:38:17 2017
New Revision: 315920
URL: https://svnweb.freebsd.org/changeset/base/315920

Log:
  cxgbe/iw_cxgbe: c4iw_connect should always returns a -ve errno on failure.
  
  MFC after:	3 days

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	Sat Mar 25 00:52:33 2017	(r315919)
+++ head/sys/dev/cxgbe/iw_cxgbe/cm.c	Sat Mar 25 01:38:17 2017	(r315920)
@@ -2202,7 +2202,7 @@ int c4iw_connect(struct iw_cm_id *cm_id,
 	ep->tos = 0;
 	ep->com.local_addr = cm_id->local_addr;
 	ep->com.remote_addr = cm_id->remote_addr;
-	err = soconnect(ep->com.so, (struct sockaddr *)&ep->com.remote_addr,
+	err = -soconnect(ep->com.so, (struct sockaddr *)&ep->com.remote_addr,
 		ep->com.thread);
 
 	if (!err) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703250138.v2P1cHPK009510>