From: Jiri Pirko Date: Mon, 26 Apr 2010 01:46:12 +0000 (+0000) Subject: pppoe: use pppoe_pernet instead of directly net_generic X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be9e969d79e40c59142fa9e931aa6f085581b379;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git pppoe: use pppoe_pernet instead of directly net_generic Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- 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, 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); }