Revert "net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket"
This reverts commit feb4fd6546
.
This commit is contained in:
parent
f2e6512f69
commit
7ce3a6de6c
1 changed files with 0 additions and 7 deletions
|
@ -2314,13 +2314,6 @@ static void xs_tcp_setup_socket(struct work_struct *work)
|
|||
case -EALREADY:
|
||||
xprt_unlock_connect(xprt, transport);
|
||||
return;
|
||||
case -EPERM:
|
||||
/* Happens, for instance, if a BPF program is preventing
|
||||
* the connect. Remap the error so upper layers can better
|
||||
* deal with it.
|
||||
*/
|
||||
status = -ECONNREFUSED;
|
||||
fallthrough;
|
||||
case -EINVAL:
|
||||
/* Happens, for instance, if the user specified a link
|
||||
* local IPv6 address without a scope-id.
|
||||
|
|
Loading…
Reference in a new issue