qemu/hw/virtio
Cole Robinson 5b456438f5 virtio-rng: Fix crash with non-default backend
'default_backend' isn't always set, but 'rng' is, so use that.

$ ./x86_64-softmmu/qemu-system-x86_64 -object rng-random,id=rng0,filename=/dev/random -device virtio-rng-pci,rng=rng0
Segmentation fault (core dumped)

Regressed with virtio refactoring in 59ccd20a9a

CC: qemu-stable@nongnu.org
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Message-id: bf4505014a0a941dbd3c62068f3cf2c496b69e6a.1370023944.git.crobinso@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-06-18 10:05:45 -05:00
..
dataplane hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00
vhost.c virtio: remove virtiobindings. 2013-04-24 11:50:20 -05:00
virtio-balloon.c virtio: cleanup: init and exit function. 2013-04-24 11:50:21 -05:00
virtio-bus.c qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path 2013-05-30 11:44:27 -05:00
virtio-pci.c virtio-rng: Fix crash with non-default backend 2013-06-18 10:05:45 -05:00
virtio-pci.h virtio-pci: cleanup. 2013-04-24 11:50:20 -05:00
virtio-rng.c virtio: cleanup: init and exit function. 2013-04-24 11:50:21 -05:00
virtio.c virtio: properly validate address before accessing config 2013-05-08 15:54:21 -05:00