virtio: console: fix locking around send_sigio_to_port()
authorAmit Shah <amit.shah@redhat.com>
Mon, 29 Jul 2013 04:55:38 +0000 (14:25 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Jul 2013 05:20:49 +0000 (14:50 +0930)
commit314081f1025e9ea77b69261f21183e9be18a6f91
tree5e6dc6c56dc4017999f646f4916cb3f8cc0055e5
parent5549fb25811710585d5ec77a0e6a1fbc8808df93
virtio: console: fix locking around send_sigio_to_port()

send_sigio_to_port() checks the value of guest_connected, which we
always modify under the inbuf_lock; make sure invocations of
send_sigio_to_port() have take the inbuf_lock around the call.

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