Skip to content

Commit 124b69b

Browse files
committed
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull virtio fix from Rusty Russell: "Obviously I forgot to push this before linux.conf.au..." * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: virtio_console: Don't access uninitialized data.
2 parents bb5204c + aded024 commit 124b69b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/char/virtio_console.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,8 @@ static void virtcons_remove(struct virtio_device *vdev)
20622062
/* Disable interrupts for vqs */
20632063
vdev->config->reset(vdev);
20642064
/* 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);
20662067

20672068
list_for_each_entry_safe(port, port2, &portdev->ports, list)
20682069
unplug_port(port);

0 commit comments

Comments
 (0)