summaryrefslogtreecommitdiff
path: root/net/ipv6/proc.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-05-02 02:46:55 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-02 02:46:55 -0700
commit0bb53a66fe1258b1cb5eb1ea70768386f0c2a1ca (patch)
tree582ed2b9453534231bc596bf360ae80fc1c23b5a /net/ipv6/proc.c
parent5efdccbcda20d3e5fbaa85f726dcc9cfeb005577 (diff)
downloadlinux-3.10-0bb53a66fe1258b1cb5eb1ea70768386f0c2a1ca.tar.gz
linux-3.10-0bb53a66fe1258b1cb5eb1ea70768386f0c2a1ca.tar.bz2
linux-3.10-0bb53a66fe1258b1cb5eb1ea70768386f0c2a1ca.zip
ipv6: assign PDE->data before gluing PDE into /proc tree
Simply replace proc_create and further data assigned with proc_create_data. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r--net/ipv6/proc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index ca8b82f96fe..df0736a4caf 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -247,13 +247,11 @@ int snmp6_register_dev(struct inet6_dev *idev)
if (!proc_net_devsnmp6)
return -ENOENT;
- p = proc_create(idev->dev->name, S_IRUGO,
- proc_net_devsnmp6, &snmp6_seq_fops);
+ p = proc_create_data(idev->dev->name, S_IRUGO,
+ proc_net_devsnmp6, &snmp6_seq_fops, idev);
if (!p)
return -ENOMEM;
- p->data = idev;
-
idev->stats.proc_dir_entry = p;
return 0;
}