diff options
| -rw-r--r-- | drivers/char/virtio_console.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 684b0d53764f..ee4dbeafb377 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
| @@ -2062,7 +2062,8 @@ static void virtcons_remove(struct virtio_device *vdev) | |||
| 2062 | /* Disable interrupts for vqs */ | 2062 | /* Disable interrupts for vqs */ |
| 2063 | vdev->config->reset(vdev); | 2063 | vdev->config->reset(vdev); |
| 2064 | /* Finish up work that's lined up */ | 2064 | /* Finish up work that's lined up */ |
| 2065 | cancel_work_sync(&portdev->control_work); | 2065 | if (use_multiport(portdev)) |
| 2066 | cancel_work_sync(&portdev->control_work); | ||
| 2066 | 2067 | ||
| 2067 | list_for_each_entry_safe(port, port2, &portdev->ports, list) | 2068 | list_for_each_entry_safe(port, port2, &portdev->ports, list) |
| 2068 | unplug_port(port); | 2069 | unplug_port(port); |
