]> Pileus Git - ~andy/linux/blobdiff - drivers/char/virtio_console.c
Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / drivers / char / virtio_console.c
index 5afc8f614b1c7836d55459ade1e659105a3ac311..e905d5f5305180cd7cc77a8690e51ae53bed3fec 100644 (file)
@@ -2052,7 +2052,8 @@ static void virtcons_remove(struct virtio_device *vdev)
        /* Disable interrupts for vqs */
        vdev->config->reset(vdev);
        /* Finish up work that's lined up */
-       cancel_work_sync(&portdev->control_work);
+       if (use_multiport(portdev))
+               cancel_work_sync(&portdev->control_work);
 
        list_for_each_entry_safe(port, port2, &portdev->ports, list)
                unplug_port(port);