]> git.hungrycats.org Git - linux/commitdiff
[IPV6]: Set owner on /proc/net/rt6_stats.
authorStephen Hemminger <shemminger@osdl.org>
Sat, 16 Aug 2003 00:52:06 +0000 (17:52 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Sat, 16 Aug 2003 00:52:06 +0000 (17:52 -0700)
net/ipv6/route.c

index 692c0477837c738f4cb3bb931845f5f8b95afb11..94450ccae81780a4166bcd2bd97c86c623225c92 100644 (file)
@@ -1983,10 +1983,11 @@ void __init ip6_route_init(void)
                                                     NULL, NULL);
        fib6_init();
 #ifdef         CONFIG_PROC_FS
-       proc_net_create("ipv6_route", 0, rt6_proc_info);
-       p = create_proc_entry("rt6_stats", S_IRUGO, proc_net);
+       p = proc_net_create("ipv6_route", 0, rt6_proc_info);
        if (p)
-               p->proc_fops = &rt6_stats_seq_fops;
+               p->owner = THIS_MODULE;
+
+       proc_net_fops_create("rt6_stats", S_IRUGO, &rt6_stats_seq_fops);
 #endif
 #ifdef CONFIG_XFRM
        xfrm6_init();