summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket.c')
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index 5691718c9..9fdc84fb5 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -822,7 +822,7 @@ int sock_create(int family, int type, int protocol, struct socket **res)
* Check protocol is in range
*/
if(family<0 || family>=NPROTO)
- return -EINVAL;
+ return -EAFNOSUPPORT;
/* Compatibility.