]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-console: Check if chardev backends available before calling into them
authorAmit Shah <amit.shah@redhat.com>
Wed, 21 Dec 2011 06:58:27 +0000 (12:28 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 21 Dec 2011 21:00:29 +0000 (15:00 -0600)
commit6640422c172e01d0e191a754d3643a68abca83bc
tree198effaabe30c44cea7a2f94e29531c57e73042e
parent3799ce4ab64f578eb818689a276e4f0c73d01fb5
virtio-console: Check if chardev backends available before calling into them

For the callback functions invoked by the virtio-serial-bus code, check
if we have chardev backends registered before we call into the chardev
functions.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reported-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-console.c