]> err.no Git - linux-2.6/blobdiff - drivers/net/bonding/bond_main.c
ath5k: Misc hw_attach fixes
[linux-2.6] / drivers / net / bonding / bond_main.c
index 9737c06045d6e7103193a82e6d9330321e34d11e..a641eeaa2a2f488bdef9a074e431c187321135f7 100644 (file)
@@ -5041,6 +5041,7 @@ static int bond_check_params(struct bond_params *params)
 }
 
 static struct lock_class_key bonding_netdev_xmit_lock_key;
+static struct lock_class_key bonding_netdev_addr_lock_key;
 
 static void bond_set_lockdep_class_one(struct net_device *dev,
                                       struct netdev_queue *txq,
@@ -5052,6 +5053,8 @@ static void bond_set_lockdep_class_one(struct net_device *dev,
 
 static void bond_set_lockdep_class(struct net_device *dev)
 {
+       lockdep_set_class(&dev->addr_list_lock,
+                         &bonding_netdev_addr_lock_key);
        netdev_for_each_tx_queue(dev, bond_set_lockdep_class_one, NULL);
 }