patch-2.4.0-test8 linux/net/socket.c

Next file: linux/net/x25/af_x25.c
Previous file: linux/net/rose/af_rose.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test7/linux/net/socket.c linux/net/socket.c
@@ -855,7 +855,7 @@
 
 	net_family_read_lock();
 	if (net_families[family] == NULL) {
-		i = -EINVAL;
+		i = -EAFNOSUPPORT;
 		goto out;
 	}
 
@@ -1710,10 +1710,9 @@
 	 *	Initialize the protocols module. 
 	 */
 
-	proto_init();
-
 	register_filesystem(&sock_fs_type);
 	sock_mnt = kern_mount(&sock_fs_type);
+	proto_init();
 
 	/*
 	 *	The netlink device handler may be needed early.

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