diff options
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 60cccf2aa959..8289e27a360a 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/ctype.h> | 35 | #include <linux/ctype.h> |
36 | #include <linux/inet.h> | 36 | #include <linux/inet.h> |
37 | #include <linux/rtnetlink.h> | 37 | #include <linux/rtnetlink.h> |
38 | #include <net/net_namespace.h> | ||
38 | 39 | ||
39 | /* #define BONDING_DEBUG 1 */ | 40 | /* #define BONDING_DEBUG 1 */ |
40 | #include "bonding.h" | 41 | #include "bonding.h" |
@@ -299,7 +300,7 @@ static ssize_t bonding_store_slaves(struct device *d, | |||
299 | read_unlock_bh(&bond->lock); | 300 | read_unlock_bh(&bond->lock); |
300 | printk(KERN_INFO DRV_NAME ": %s: Adding slave %s.\n", | 301 | printk(KERN_INFO DRV_NAME ": %s: Adding slave %s.\n", |
301 | bond->dev->name, ifname); | 302 | bond->dev->name, ifname); |
302 | dev = dev_get_by_name(ifname); | 303 | dev = dev_get_by_name(&init_net, ifname); |
303 | if (!dev) { | 304 | if (!dev) { |
304 | printk(KERN_INFO DRV_NAME | 305 | printk(KERN_INFO DRV_NAME |
305 | ": %s: Interface %s does not exist!\n", | 306 | ": %s: Interface %s does not exist!\n", |