patch-2.4.6 linux/net/netlink/af_netlink.c

Next file: linux/net/netrom/nr_dev.c
Previous file: linux/net/lapb/lapb_subr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/net/netlink/af_netlink.c linux/net/netlink/af_netlink.c
@@ -9,6 +9,9 @@
  *		as published by the Free Software Foundation; either version
  *		2 of the License, or (at your option) any later version.
  * 
+ * Tue Jun 26 14:36:48 MEST 2001 Herbert "herp" Rosmanith
+ *                               added netlink_proto_exit
+ *
  */
 
 #include <linux/config.h>
@@ -985,4 +988,11 @@
 	return 0;
 }
 
+static void __exit netlink_proto_exit(void)
+{
+       sock_unregister(PF_NETLINK);
+       remove_proc_entry("net/netlink", NULL);
+}
+
 module_init(netlink_proto_init);
+module_exit(netlink_proto_exit);

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