virtio: console: Unblock poll on port hot-unplug
authorAmit Shah <amit.shah@redhat.com>
Thu, 2 Sep 2010 12:41:44 +0000 (18:11 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:01 +0000 (17:44 +1030)
commit8529a504273d4efa6bb004dcd6ef28fe67b64ae9
tree3a6046100b725d8b263c4bd94baf6338dd4208b0
parent3709ea7ae7d698b428576c2db0bbb6e08a18cf12
virtio: console: Unblock poll on port hot-unplug

When a port is hot-unplugged while an app is blocked on poll(), unblock
the poll() and return.

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