aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorWANG Cong <amwang@redhat.com>2011-06-19 16:13:01 -0700
committerDavid S. Miller <davem@davemloft.net>2011-06-19 16:13:01 -0700
commitcefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e (patch)
treeea1a587dd6a87e2c8c5ea84855ca068484fecdf5 /net/bridge
parent9aa3c94ce59066f545521033007abb6441706068 (diff)
downloadkernel_samsung_smdk4412-cefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e.zip
kernel_samsung_smdk4412-cefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e.tar.gz
kernel_samsung_smdk4412-cefa9993f161c1c2b6b91b7ea2e84a9bfbd43d2e.tar.bz2
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 'net/bridge')
-rw-r--r--net/bridge/br_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c
index a6b2f86..c188c80 100644
--- a/net/bridge/br_device.c
+++ b/net/bridge/br_device.c
@@ -243,6 +243,7 @@ int br_netpoll_enable(struct net_bridge_port *p)
goto out;
np->dev = p->dev;
+ strlcpy(np->dev_name, p->dev->name, IFNAMSIZ);
err = __netpoll_setup(np);
if (err) {