mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
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