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>

authored by Divy Le Ray and committed by Jeff Garzik f2d961c9 692412b3

+3 -1
+3 -1
drivers/net/cxgb3/cxgb3_main.c
··· 2119 2119 { 2120 2120 int i; 2121 2121 2122 - rtnl_lock(); /* synchronize with ifdown */ 2122 + if (!rtnl_trylock()) /* synchronize with ifdown */ 2123 + return; 2124 + 2123 2125 for_each_port(adapter, i) { 2124 2126 struct net_device *dev = adapter->port[i]; 2125 2127 struct port_info *p = netdev_priv(dev);