]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - net/core/dev_mcast.c
[NET]: Make /proc/net per network namespace
[thirdparty/kernel/stable.git] / net / core / dev_mcast.c
index 20330c572610968af449837b1f615a59fd42f9df..8e069fc207cb9c5151df7f80f4979a94d6682559 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
 #include <linux/init.h>
+#include <net/net_namespace.h>
 #include <net/ip.h>
 #include <net/route.h>
 #include <linux/skbuff.h>
@@ -254,7 +255,7 @@ static const struct file_operations dev_mc_seq_fops = {
 
 void __init dev_mcast_init(void)
 {
-       proc_net_fops_create("dev_mcast", 0, &dev_mc_seq_fops);
+       proc_net_fops_create(&init_net, "dev_mcast", 0, &dev_mc_seq_fops);
 }
 
 EXPORT_SYMBOL(dev_mc_add);