提交 02238959 编写于 作者: A Amit Shah 提交者: Rusty Russell

virtio: console: Reset vdev before removing device

The virtqueues should be disabled before attempting to remove the
device.
Signed-off-by: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 f6f94e2a
......@@ -1605,6 +1605,9 @@ static void virtcons_remove(struct virtio_device *vdev)
portdev = vdev->priv;
/* Disable interrupts for vqs */
vdev->config->reset(vdev);
/* Finish up work that's lined up */
cancel_work_sync(&portdev->control_work);
list_for_each_entry_safe(port, port2, &portdev->ports, list)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册