diff options
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r-- | drivers/net/pppoe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index c5c70e4b1d36..2f130e06b6dc 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c | |||
@@ -216,7 +216,7 @@ static inline struct pppox_sock *get_item_by_addr(struct sockaddr_pppox *sp) | |||
216 | struct net_device *dev; | 216 | struct net_device *dev; |
217 | int ifindex; | 217 | int ifindex; |
218 | 218 | ||
219 | dev = dev_get_by_name(sp->sa_addr.pppoe.dev); | 219 | dev = dev_get_by_name(&init_net, sp->sa_addr.pppoe.dev); |
220 | if(!dev) | 220 | if(!dev) |
221 | return NULL; | 221 | return NULL; |
222 | ifindex = dev->ifindex; | 222 | ifindex = dev->ifindex; |
@@ -603,7 +603,7 @@ static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr, | |||
603 | 603 | ||
604 | /* Don't re-bind if sid==0 */ | 604 | /* Don't re-bind if sid==0 */ |
605 | if (sp->sa_addr.pppoe.sid != 0) { | 605 | if (sp->sa_addr.pppoe.sid != 0) { |
606 | dev = dev_get_by_name(sp->sa_addr.pppoe.dev); | 606 | dev = dev_get_by_name(&init_net, sp->sa_addr.pppoe.dev); |
607 | 607 | ||
608 | error = -ENODEV; | 608 | error = -ENODEV; |
609 | if (!dev) | 609 | if (!dev) |