cxgbe/iw_cxgbe: c4iw_connect should always returns a -ve errno on failure.

MFC after:	3 days
This commit is contained in:
Navdeep Parhar 2017-03-25 01:38:17 +00:00
parent 480c955cee
commit a8d61a0a7b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315920

View File

@ -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) {