diff options
Diffstat (limited to 'drivers/net/wan/sbni.c')
-rw-r--r-- | drivers/net/wan/sbni.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index 1cc18e787a6..8d7e01e8f56 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #include <linux/init.h> | 54 | #include <linux/init.h> |
55 | #include <linux/delay.h> | 55 | #include <linux/delay.h> |
56 | 56 | ||
57 | #include <net/net_namespace.h> | ||
57 | #include <net/arp.h> | 58 | #include <net/arp.h> |
58 | 59 | ||
59 | #include <asm/io.h> | 60 | #include <asm/io.h> |
@@ -1361,7 +1362,7 @@ sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd ) | |||
1361 | 1362 | ||
1362 | if (copy_from_user( slave_name, ifr->ifr_data, sizeof slave_name )) | 1363 | if (copy_from_user( slave_name, ifr->ifr_data, sizeof slave_name )) |
1363 | return -EFAULT; | 1364 | return -EFAULT; |
1364 | slave_dev = dev_get_by_name( slave_name ); | 1365 | slave_dev = dev_get_by_name(&init_net, slave_name ); |
1365 | if( !slave_dev || !(slave_dev->flags & IFF_UP) ) { | 1366 | if( !slave_dev || !(slave_dev->flags & IFF_UP) ) { |
1366 | printk( KERN_ERR "%s: trying to enslave non-active " | 1367 | printk( KERN_ERR "%s: trying to enslave non-active " |
1367 | "device %s\n", dev->name, slave_name ); | 1368 | "device %s\n", dev->name, slave_name ); |