Skip to content
Snippets Groups Projects
Commit 5b456438 authored by Cole Robinson's avatar Cole Robinson Committed by Anthony Liguori
Browse files

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 59ccd20a

CC: qemu-stable@nongnu.org
Signed-off-by: default avatarCole Robinson <crobinso@redhat.com>
Acked-by: default avatarAmit Shah <amit.shah@redhat.com>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Tested-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
Message-id: bf4505014a0a941dbd3c62068f3cf2c496b69e6a.1370023944.git.crobinso@redhat.com
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent afd59989
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment