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

Commit db8c8ab6 authored by David Vrabel's avatar David Vrabel Committed by David S. Miller
Browse files

xen-netfront: fix locking in connect error path



If no queues could be created when connecting to the backend, one of the
error paths would deadlock.

Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 081e83a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2001,7 +2001,7 @@ static int talk_to_netback(struct xenbus_device *dev,
	info->queues = NULL;
	info->queues = NULL;
	rtnl_lock();
	rtnl_lock();
	netif_set_real_num_tx_queues(info->netdev, 0);
	netif_set_real_num_tx_queues(info->netdev, 0);
	rtnl_lock();
	rtnl_unlock();
 out:
 out:
	return err;
	return err;
}
}