| Kernel v2.5.75 /net/socket.c |
|---|
 2.5.75
 net
 socket.c
diff -Nru a/net/socket.c b/net/socket.c
--- a/net/socket.c Thu Jul 10 13:16:27 2003
+++ b/net/socket.c Thu Jul 10 13:16:27 2003
@@ -1614,7 +1614,7 @@
goto out;
/* do not move before msg_sys is valid */
- err = -EINVAL;
+ err = -EMSGSIZE;
if (msg_sys.msg_iovlen > UIO_MAXIOV)
goto out_put;
@@ -1713,7 +1713,7 @@
if (!sock)
goto out;
- err = -EINVAL;
+ err = -EMSGSIZE;
if (msg_sys.msg_iovlen > UIO_MAXIOV)
goto out_put;
|