]> err.no Git - linux-2.6/blobdiff - net/ipv4/udp.c
[IPV4] TUNNEL4: Fix incoming packet length check for inter-protocol tunnel.
[linux-2.6] / net / ipv4 / udp.c
index 1f535e315188858a4ec2f935efb431293d055dec..db1cb7c96d63dcdb32356789eec17448aff6f97d 100644 (file)
@@ -1605,10 +1605,9 @@ int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo)
        afinfo->seq_ops.next            = udp_seq_next;
        afinfo->seq_ops.stop            = udp_seq_stop;
 
-       p = proc_net_fops_create(net, afinfo->name, S_IRUGO, &afinfo->seq_fops);
-       if (p)
-               p->data = afinfo;
-       else
+       p = proc_create_data(afinfo->name, S_IRUGO, net->proc_net,
+                            &afinfo->seq_fops, afinfo);
+       if (!p)
                rc = -ENOMEM;
        return rc;
 }