netpoll: copy dev name of slaves to struct netpoll
Subsystems (4)
PATCH 1/1 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 <[email protected]>
---
drivers/net/bonding/bond_main.c +1 -0
@@ -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);
net/bridge/br_device.c +1 -0
@@ -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) {
From: Amerigo Wang <[email protected]>
Date: Fri, 17 Jun 2011 17:43:37 +0800
Quoted 6 lines
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 <[email protected]>
Applied, thanks.