From a8d61a0a7badb59adb5f7221616190f641224188 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sat, 25 Mar 2017 01:38:17 +0000 Subject: [PATCH] cxgbe/iw_cxgbe: c4iw_connect should always returns a -ve errno on failure. MFC after: 3 days --- sys/dev/cxgbe/iw_cxgbe/cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/iw_cxgbe/cm.c b/sys/dev/cxgbe/iw_cxgbe/cm.c index 2097871afabf..aef4a70dbb5d 100644 --- a/sys/dev/cxgbe/iw_cxgbe/cm.c +++ b/sys/dev/cxgbe/iw_cxgbe/cm.c @@ -2202,7 +2202,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) 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) {