patch-2.0.34 linux/net/socket.c

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

diff -u --recursive --new-file v2.0.33/linux/net/socket.c linux/net/socket.c
@@ -588,7 +588,7 @@
 	if ((fd = get_fd(SOCK_INODE(sock))) < 0) 
 	{
 		sock_release(sock);
-		return(-EINVAL);
+		return fd;
 	}
 
 	sock->file=current->files->fd[fd];

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