virtio: console: Error out if we can't allocate buffers for control queue
authorAmit Shah <amit.shah@redhat.com>
Fri, 12 Feb 2010 05:02:17 +0000 (10:32 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:53:04 +0000 (14:23 +1030)
commit22a29eacd2a17f22c8260a8106a4e36bae7fb6ea
tree1b07a3c9eb02b696f686bb63e82dd740877187db
parent7177876fea8306a6f49400d11f5913bf9b3b5e5f
virtio: console: Error out if we can't allocate buffers for control queue

With MULTIPORT support, the control queue is an integral part of the
functioning of the device. If we can't get any buffers allocated, the
host won't be able to relay important information and the device may not
function as intended.

Ensure 'probe' doesn't succeed until the control queue has at least one
buffer allocated for its ivq.

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