* [PATCH] set owner on /proc/net/rt6_stats
@ 2003-08-15 18:01 Stephen Hemminger
2003-08-16 14:48 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-08-15 18:01 UTC (permalink / raw)
To: David S. Miller, Hideaki YOSHIFUJI; +Cc: netdev
Fix up initialization of IPV6 /proc/net/rt6_stats entries so owner field is set.
Use proc_net_fops_create helper instead of proc_net_create and fops assignment.
diff -Nru a/net/ipv6/route.c b/net/ipv6/route.c
--- a/net/ipv6/route.c Fri Aug 15 10:57:55 2003
+++ b/net/ipv6/route.c Fri Aug 15 10:57:55 2003
@@ -1983,10 +1983,11 @@
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();
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] set owner on /proc/net/rt6_stats
2003-08-15 18:01 [PATCH] set owner on /proc/net/rt6_stats Stephen Hemminger
@ 2003-08-16 14:48 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-08-16 14:48 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: yoshfuji, netdev
On Fri, 15 Aug 2003 11:01:07 -0700
Stephen Hemminger <shemminger@osdl.org> wrote:
> Fix up initialization of IPV6 /proc/net/rt6_stats entries so owner field is set.
> Use proc_net_fops_create helper instead of proc_net_create and fops assignment.
Patch applied, thanks Stephen.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-16 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 18:01 [PATCH] set owner on /proc/net/rt6_stats Stephen Hemminger
2003-08-16 14:48 ` 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).