aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2013-03-08 11:30:18 +1100
committerBen Hutchings <ben@decadent.org.uk>2013-03-20 15:03:31 +0000
commite9a1e5cd4a732b97aeb0bf6869634021a90f6933 (patch)
tree3071e44551728f08fb2e17fe8200c93b0a48c96c /sound
parente4922fddf907936782d199d2608a52d769a7fc97 (diff)
virtio: rng: disallow multiple device registrations, fixes crashes
commit e84e7a56a3aa2963db506299e29a5f3f09377f9b upstream. The code currently only supports one virtio-rng device at a time. Invoking guests with multiple devices causes the guest to blow up. Check if we've already registered and initialised the driver. Also cleanup in case of registration errors or hot-unplug so that a new device can be used. Reported-by: Peter Krempa <pkrempa@redhat.com> Reported-by: <yunzheng@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions