patch-2.1.30 linux/net/socket.c

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

diff -u --recursive --new-file v2.1.29/linux/net/socket.c linux/net/socket.c
@@ -130,7 +130,7 @@
  *	The protocol list. Each protocol is registered in here.
  */
 
-static struct net_proto_family *net_families[NPROTO];
+struct net_proto_family *net_families[NPROTO];
 
 /*
  *	Statistics counters of the socket lists
@@ -272,6 +272,7 @@
 	inode->i_gid = current->gid;
 
 	sock->inode = inode;
+	init_waitqueue(&sock->wait);
 	sock->fasync_list = NULL;
 	sock->state = SS_UNCONNECTED;
 	sock->flags = 0;

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