virtio: console: Fix crash when port is unplugged and blocked for write
authorAmit Shah <amit.shah@redhat.com>
Thu, 27 May 2010 07:54:40 +0000 (12:54 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 3 Jun 2010 13:09:19 +0000 (22:09 +0930)
commit60e5e0b84045ce0f6ab07a02c7fcd6627b53d2d3
tree10ce932b6087da2cb0d118b871b4044fbace7299
parent0047634d3daebca9e99a22eb89167bf77f35cdfa
virtio: console: Fix crash when port is unplugged and blocked for write

When a program that has a virtio port opened and blocked for a write
operation, a port hot-unplug event will later led to a crash when
SIGTERM was sent to the program. Fix that.

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