patch-2.1.27 linux/net/socket.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/rose/rose_route.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/net/socket.c linux/net/socket.c
@@ -38,6 +38,7 @@
  *		Alan Cox	:	Added thread locking to sys_* calls
  *					for sockets. May have errors at the
  *					moment.
+ *		Kevin Buhr	:	Fixed the dumb errors in the above.
  *
  *
  *		This program is free software; you can redistribute it and/or
@@ -1222,7 +1223,7 @@
 	}
 	if (msg_sys.msg_iovlen>UIO_MAXIOV)
 	{
-		err=-EFAULT;
+		err=-EINVAL;
 		goto out;
 	}
 	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov