aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppoe.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-04-25 21:46:12 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-26 14:18:44 -0400
commitbe9e969d79e40c59142fa9e931aa6f085581b379 (patch)
treeffcbde352907b102952323ede0463d6d472d3022 /drivers/net/pppoe.c
parent0db3f0f49a99db33a411af1c4352839c0296eff3 (diff)
pppoe: use pppoe_pernet instead of directly net_generic
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r--drivers/net/pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index cdd11ba100ea..c059c8db42e3 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -258,7 +258,7 @@ static inline struct pppox_sock *get_item_by_addr(struct net *net,
258 dev = dev_get_by_name_rcu(net, sp->sa_addr.pppoe.dev); 258 dev = dev_get_by_name_rcu(net, sp->sa_addr.pppoe.dev);
259 if (dev) { 259 if (dev) {
260 ifindex = dev->ifindex; 260 ifindex = dev->ifindex;
261 pn = net_generic(net, pppoe_net_id); 261 pn = pppoe_pernet(net);
262 pppox_sock = get_item(pn, sp->sa_addr.pppoe.sid, 262 pppox_sock = get_item(pn, sp->sa_addr.pppoe.sid,
263 sp->sa_addr.pppoe.remote, ifindex); 263 sp->sa_addr.pppoe.remote, ifindex);
264 } 264 }