cxgbe/iw_cxgbe: c4iw_connect should always returns a -ve errno on failure.
MFC after: 3 days
This commit is contained in:
parent
480c955cee
commit
a8d61a0a7b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user