]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
netfilter: assign PDE->fops before gluing PDE into /proc tree
authorDenis V. Lunev <den@openvz.org>
Fri, 2 May 2008 11:10:57 +0000 (04:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 11:10:57 +0000 (04:10 -0700)
Replace create_proc_entry with specially created for this purpose proc_create.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_standalone.c

index b59871f6bdda3b6bcfddfcd24925df64e70e15f2..46ea542d0df999d8fdaaecabac5eaf7340ee8342 100644 (file)
@@ -296,11 +296,11 @@ static int nf_conntrack_standalone_init_proc(void)
        pde = proc_net_fops_create(&init_net, "nf_conntrack", 0440, &ct_file_ops);
        if (!pde)
                goto out_nf_conntrack;
-       pde = create_proc_entry("nf_conntrack", S_IRUGO, init_net.proc_net_stat);
+
+       pde = proc_create("nf_conntrack", S_IRUGO, init_net.proc_net_stat,
+                         &ct_cpu_seq_fops);
        if (!pde)
                goto out_stat_nf_conntrack;
-       pde->proc_fops = &ct_cpu_seq_fops;
-       pde->owner = THIS_MODULE;
        return 0;
 
 out_stat_nf_conntrack: