mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
cxgb3 - avoid deadlock with mac watchdog
Fix a deadlock when the interface s configured down and the watchdog tack is sleeping on rtnl_lock. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
692412b31f
commit
f2d961c982
1 changed files with 3 additions and 1 deletions
|
@ -2119,7 +2119,9 @@ static void check_t3b2_mac(struct adapter *adapter)
|
|||
{
|
||||
int i;
|
||||
|
||||
rtnl_lock(); /* synchronize with ifdown */
|
||||
if (!rtnl_trylock()) /* synchronize with ifdown */
|
||||
return;
|
||||
|
||||
for_each_port(adapter, i) {
|
||||
struct net_device *dev = adapter->port[i];
|
||||
struct port_info *p = netdev_priv(dev);
|
||||
|
|
Loading…
Reference in a new issue