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

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
...@@ -2001,7 +2001,7 @@ static int talk_to_netback(struct xenbus_device *dev, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment