]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
virtio: console: Fix crash when hot-unplugging a port and read is blocked
authorAmit Shah <amit.shah@redhat.com>
Thu, 27 May 2010 07:54:39 +0000 (13:24 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 3 Jun 2010 13:09:18 +0000 (22:39 +0930)
commit0047634d3daebca9e99a22eb89167bf77f35cdfa
treef3331e990777369228ea8a68b81cecd773e6157c
parenta5b365a652206ca300256974ed9301a7d241a6ed
virtio: console: Fix crash when hot-unplugging a port and read is blocked

When removing a port we don't check if a program was blocked for read.
This leads to a crash when SIGTERM is sent to the program after
hot-unplugging the port.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c