Re: [PATCH net V2] bonding: send igmp report for its master

From: Cong Wang
Date: Wed Mar 14 2012 - 09:59:39 EST


On 03/14/2012 11:37 AM, Weiping Pan wrote:
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 435984a..300c490 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -794,6 +794,14 @@ static void bond_resend_igmp_join_requests_delayed(struct work_struct *work)
{
struct bonding *bond = container_of(work, struct bonding,
mcast_work.work);
+ struct net_device *bond_dev, *master_dev = NULL;
+ bond_dev = bond->dev;

IIRC, you need to hold read_lock for this...

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/