We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86bcb2 commit ad9bd8dCopy full SHA for ad9bd8d
drivers/net/bonding/bond_main.c
@@ -4284,6 +4284,7 @@ void bond_setup(struct net_device *bond_dev)
4284
{
4285
struct bonding *bond = netdev_priv(bond_dev);
4286
4287
+ spin_lock_init(&bond->mode_lock);
4288
bond->params = bonding_defaults;
4289
4290
/* Initialize pointers */
@@ -4756,7 +4757,6 @@ static int bond_init(struct net_device *bond_dev)
4756
4757
if (!bond->wq)
4758
return -ENOMEM;
4759
- spin_lock_init(&bond->mode_lock);
4760
spin_lock_init(&bond->stats_lock);
4761
lockdep_register_key(&bond->stats_lock_key);
4762
lockdep_set_class(&bond->stats_lock, &bond->stats_lock_key);
0 commit comments