summaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2013-03-08 11:30:18 +1100
committerRusty Russell <rusty@rustcorp.com.au>2013-03-08 11:30:43 +1100
commite84e7a56a3aa2963db506299e29a5f3f09377f9b (patch)
tree3c368fc922977af1760932c55fcfb69e20126cfa /drivers/char/virtio_console.c
parentf7f154f1246ccc5a0a7e9ce50932627d60a0c878 (diff)
downloadop-kernel-dev-e84e7a56a3aa2963db506299e29a5f3f09377f9b.zip
op-kernel-dev-e84e7a56a3aa2963db506299e29a5f3f09377f9b.tar.gz
virtio: rng: disallow multiple device registrations, fixes crashes
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> Cc: stable@kernel.org
Diffstat (limited to 'drivers/char/virtio_console.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud