projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/ulp: use consistent error code when blocking ULP
[linux-2.6-microblaze.git]
/
net
/
ipv4
/
tcp_ulp.c
diff --git
a/net/ipv4/tcp_ulp.c
b/net/ipv4/tcp_ulp.c
index
05b6077
..
2aa4421
100644
(file)
--- a/
net/ipv4/tcp_ulp.c
+++ b/
net/ipv4/tcp_ulp.c
@@
-139,7
+139,7
@@
static int __tcp_set_ulp(struct sock *sk, const struct tcp_ulp_ops *ulp_ops)
if (sk->sk_socket)
clear_bit(SOCK_SUPPORT_ZC, &sk->sk_socket->flags);
- err = -E
INVAL
;
+ err = -E
NOTCONN
;
if (!ulp_ops->clone && sk->sk_state == TCP_LISTEN)
goto out_err;