Commit 9c537673 authored by David S. Miller's avatar David S. Miller

[TG3]: Need tx_lock in tg3_set_rx_mode().

Noticed by Eric Lemoine.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3560d357
...@@ -6295,7 +6295,9 @@ static void tg3_set_rx_mode(struct net_device *dev) ...@@ -6295,7 +6295,9 @@ static void tg3_set_rx_mode(struct net_device *dev)
struct tg3 *tp = netdev_priv(dev); struct tg3 *tp = netdev_priv(dev);
spin_lock_irq(&tp->lock); spin_lock_irq(&tp->lock);
spin_lock(&tp->tx_lock);
__tg3_set_rx_mode(dev); __tg3_set_rx_mode(dev);
spin_unlock(&tp->tx_lock);
spin_unlock_irq(&tp->lock); spin_unlock_irq(&tp->lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment