> + &afinfo->seq_fops, afinfo);
> + if (!p)
> rc = -ENOMEM;
> return rc;
> }
> diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
> index b053ac7..c19c491 100644
> --- a/net/ipv4/udp.c
> +++ b/net/ipv4/udp.c
> @@ -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;
> }
> --
> 1.5.3.rc5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to
majordomo@vger.kernel.org
> More majordomo info at
http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at
http://www.tux.org/lkml/
>