Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2d961c9 authored by Divy Le Ray's avatar Divy Le Ray Committed by Jeff Garzik
Browse files

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: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 692412b3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);