提交 db8c8ab6 编写于 作者: D David Vrabel 提交者: 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: NDavid Vrabel <david.vrabel@citrix.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 081e83a7
......@@ -2001,7 +2001,7 @@ static int talk_to_netback(struct xenbus_device *dev,
info->queues = NULL;
rtnl_lock();
netif_set_real_num_tx_queues(info->netdev, 0);
rtnl_lock();
rtnl_unlock();
out:
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册