summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorWANG Cong2011-06-20 01:13:01 +0200
committerDavid S. Miller2011-06-20 01:13:01 +0200
commitcefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e (patch)
treeea1a587dd6a87e2c8c5ea84855ca068484fecdf5 /drivers/net/bonding/bond_main.c
parentipv4: fix multicast losses (diff)
downloadkernel-qcow2-linux-cefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e.tar.gz
kernel-qcow2-linux-cefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e.tar.xz
kernel-qcow2-linux-cefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e.zip
netpoll: copy dev name of slaves to struct netpoll
Otherwise we will not see the name of the slave dev in error message: [ 388.469446] (null): doesn't support polling, aborting. Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 652b30e525d0..eafe44a528ac 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1297,6 +1297,7 @@ static inline int slave_enable_netpoll(struct slave *slave)
goto out;
np->dev = slave->dev;
+ strlcpy(np->dev_name, slave->dev->name, IFNAMSIZ);
err = __netpoll_setup(np);
if (err) {
kfree(np);