virtio: console: add locks around buffer removal in port unplug path
authorAmit Shah <amit.shah@redhat.com>
Mon, 29 Jul 2013 04:53:46 +0000 (14:23 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Jul 2013 05:20:47 +0000 (14:50 +0930)
commitc6017e793b932e84b1c998f9b4c08d74ff0ea9c0
treeaa150eca5cdcb617606cc6aa23ea340392106e6e
parent927cfb9788475abd5cf5e6566bb1cf46d29b0694
virtio: console: add locks around buffer removal in port unplug path

The removal functions act on the vqs, and the vq operations need to be
locked.

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