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)
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

Simple merge