pppoe: use pppoe_pernet instead of directly net_generic
authorJiri Pirko <jpirko@redhat.com>
Mon, 26 Apr 2010 01:46:12 +0000 (01:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2010 18:18:44 +0000 (11:18 -0700)
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppoe.c

index cdd11ba100ea09d28c6871e9d3b6d75accd3a27b..c059c8db42e30478cc90135a4566f59c923a2475 100644 (file)
@@ -258,7 +258,7 @@ static inline struct pppox_sock *get_item_by_addr(struct net *net,
        dev = dev_get_by_name_rcu(net, sp->sa_addr.pppoe.dev);
        if (dev) {
                ifindex = dev->ifindex;
-               pn = net_generic(net, pppoe_net_id);
+               pn = pppoe_pernet(net);
                pppox_sock = get_item(pn, sp->sa_addr.pppoe.sid,
                                sp->sa_addr.pppoe.remote, ifindex);
        }