virtio: console: Un-block reads on chardev close
authorAmit Shah <amit.shah@redhat.com>
Thu, 2 Sep 2010 12:41:43 +0000 (18:11 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2010 07:14:01 +0000 (17:44 +1030)
commit3709ea7ae7d698b428576c2db0bbb6e08a18cf12
treeb0c65cf625ac22023722280e0f113240e129007c
parent84ec06c59a14d0941dd58ca6793b24a7e86b3b85
virtio: console: Un-block reads on chardev close

If a chardev is closed, any blocked read / poll calls should just return
and not attempt to use other state.

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