diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-02-28 14:13:46 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 14:13:46 -0800 |
commit | 4436f4cbfac15acea139863e322ed2f9efb118d3 (patch) | |
tree | 89be855725f3120513bb0ed74a9608a1ab3b5ed1 /net/ipv6/proc.c | |
parent | 160f17e345f5b50484d6cdc985b8686a05bf015d (diff) |
[IPV6]: Use proc_create() to setup ->proc_fops first
Use proc_create() to make sure that ->proc_fops be setup before gluing
PDE to main tree.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 35e502a72495..199ef379e501 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c @@ -217,12 +217,12 @@ int snmp6_register_dev(struct inet6_dev *idev) if (!proc_net_devsnmp6) return -ENOENT; - p = create_proc_entry(idev->dev->name, S_IRUGO, proc_net_devsnmp6); + p = proc_create(idev->dev->name, S_IRUGO, + proc_net_devsnmp6, &snmp6_seq_fops); if (!p) return -ENOMEM; p->data = idev; - p->proc_fops = &snmp6_seq_fops; idev->stats.proc_dir_entry = p; return 0; |