Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.5.75 /net/socket.c

Filename:/net/socket.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.5.72  2.5.71  2.5.70-bk19  2.5.70-bk18  2.5.70-bk17  2.5.70-bk16 
(Following)

Location
[  2.5.75
  [  net
     o  socket.c

Patch

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;
    


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.