From 50b993918e420212f57daa92b4b05ff710498c42 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 15 Aug 2003 17:52:06 -0700 Subject: [PATCH] [IPV6]: Set owner on /proc/net/rt6_stats. --- net/ipv6/route.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 692c0477837c7..94450ccae8178 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -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(); -- 2.53.0