aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/pktgen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 42e4cce08a92..2001cb1cf5cc 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -1882,8 +1882,10 @@ static void pktgen_change_name(struct net_device *dev)
1882 1882
1883 remove_proc_entry(pkt_dev->entry->name, pg_proc_dir); 1883 remove_proc_entry(pkt_dev->entry->name, pg_proc_dir);
1884 1884
1885 pkt_dev->entry = create_proc_entry(dev->name, 0600, 1885 pkt_dev->entry = proc_create_data(dev->name, 0600,
1886 pg_proc_dir); 1886 pg_proc_dir,
1887 &pktgen_if_fops,
1888 pkt_dev);
1887 if (!pkt_dev->entry) 1889 if (!pkt_dev->entry)
1888 printk(KERN_ERR "pktgen: can't move proc " 1890 printk(KERN_ERR "pktgen: can't move proc "
1889 " entry for '%s'\n", dev->name); 1891 " entry for '%s'\n", dev->name);