* patch: af_netlink rmmod problem
@ 2001-06-26 12:32 Herbert Rosmanith
2001-06-26 22:10 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Herbert Rosmanith @ 2001-06-26 12:32 UTC (permalink / raw)
To: alan, kuznet, linux-kernel; +Cc: Herbert Rosmanith, Kernel Mailing List
hello,
when doing a series of insmod/rmmod of af_netlink, I noticed
/proc/net/netlink entries being added each time.
this small patch addresses the problem:
--- snip ---
bash-2.03# diff -u linux-2.4.5.orig/net/netlink/af_netlink.c linux-2.4.5.new/net/netlink/af_netlink.c
--- linux-2.4.5.orig/net/netlink/af_netlink.c Thu Apr 12 21:11:39 2001
+++ linux-2.4.5.new/net/netlink/af_netlink.c Tue Jun 26 14:41:25 2001
@@ -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);
--- snip ---
thanks,
h.rosmanith
herp@wildsau.idv.uni-linz.ac.at
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: patch: af_netlink rmmod problem
2001-06-26 12:32 patch: af_netlink rmmod problem Herbert Rosmanith
@ 2001-06-26 22:10 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2001-06-26 22:10 UTC (permalink / raw)
To: Herbert Rosmanith; +Cc: alan, kuznet, linux-kernel, Kernel Mailing List
Herbert Rosmanith writes:
> this small patch addresses the problem:
I've applied your patch, thank you.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-26 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-26 12:32 patch: af_netlink rmmod problem Herbert Rosmanith
2001-06-26 22:10 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).