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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to