patch-2.4.22 linux-2.4.22/net/socket.c

Next file: linux-2.4.22/net/sunrpc/clnt.c
Previous file: linux-2.4.22/net/sched/sch_tbf.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/socket.c linux-2.4.22/net/socket.c
@@ -1359,7 +1359,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;
 
@@ -1442,7 +1442,7 @@
 	if (!sock)
 		goto out;
 
-	err = -EINVAL;
+	err = -EMSGSIZE;
 	if (msg_sys.msg_iovlen > UIO_MAXIOV)
 		goto out_put;
 	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)